473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

help needed for correct tools

I am using VS2003 and VB.NET.

My project is to locate book titles within a library collection exported
into an XML file and edit quiz information related to that book's library
record. The "quiz information" originates in another text file containing
book titles and quiz information.

-The quiz file is a plain text file that I will iterate through in code.
-The XML file is a collection of thousands of "MARC records" that need to be
updated. Each MARC record is a collection of fields representing a particular
book.

Here is an abbreviated example of one MARC record in XML, leaving out
several child siblings for clarity:

<?xml version="1.0" encoding="UTF-8"?>
<mrcbfile>
<mrcb format-type="bd"> //the beginning of a specific marc record
<mrcbldr-bd>
<mrcbldr-bd-18 value="blank"/>
<mrcbldr-bd-19 value="blank"/>
</mrcbldr-bd>
<mrcb-control-fields>
<mrcb005>20021225124740.57</mrcb005>
<mrcb008-bk>
<mrcb008-bk-38 value="|"/>
<mrcb008-bk-39 value="u"/>
</mrcb008-bk>
</mrcb-control-fields>
<mrcb-title-and-title-related>
<mrcb245 i1="i1-1" i2="i2-4">
<mrcb245-a>The boy who lost his face /</mrcb245-a>
<mrcb245-c>Louis Sachar.</mrcb245-c>
</mrcb245>
</mrcb-title-and-title-related>
<mrcb-notes>
<mrcb526 i1="i1-8" i2="i2-blank">
<mrcb526-a>Accelerated Reader AR</mrcb526-a>
<mrcb526-z>29999</mrcb526-z>
</mrcb526>
</mrcb-notes>
<mrcb-notes>
<mrcb590 i1="i1-blank" i2="i2-blank">
<mrcb590-a>Quiz owned by: NEILL, SANDBURG</mrcb590-a>
</mrcb590>
<mrcb590 i1="i1-blank" i2="i2-blank">
<mrcb590-a>Quiz owned by: NEILL, SANDBURG</mrcb590-a>
</mrcb590>
<mrcb595 i1="i1-blank" i2="i2-blank">
<mrcb595-a>Accelerated Reader AR</mrcb595-a>
</mrcb595>
</mrcb-notes>
<mrcb-location>
<mrcb852 i1="i1-blank" i2="i2-blank">
<mrcb852-a>PLYMOUTH</mrcb852-a>
<mrcb852-9>$3.95</mrcb852-9>
</mrcb852>
</mrcb-location>
</mrcb>

My problem:
I am not sure what XML tools to use to locate AND edit the XML data. Using
an XML parser, I learned I can "find" a particular book title using the
following (xpath?) syntax:
/mrcbfile/mrcb/mrcb-title-and-title-related/mrcb245 [mrcb245-a="The boy who
lost his face /"]

Having foud a specific book title, I need to locate the mrcb590-a child
element containing the sub string "Quiz owned by" and append a library name
to the end of the existing string. Then I need to repeat this for every other
MARC record in the XML file.

The particular elements/nodes I will work with are:
<mrb245-a> (the book title) - to match against the quiz text file
<mrcb590-a> (the quiz info) - to edit

So:
1) what are the best tools to use for finding and editing XML data (DOM,
XPATH, XmlReader,XPathNavigator, et al.)?
2) can somebody provide a (pseudo)-code snippet of how it should look?

XML seems straightforward enough, but the many tools are confusing to me. I
hope I've explained my situation clearly enough.

Thanks very much!

George
Nov 12 '05 #1
3 1843
hi George,
this is not the best answer you'll get, but in the meantime, this is a good
article that tells you what to use in specific scenarios:
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Sonu Kapoor has lots of how to's that will fit your scenaio:
http://weblogs.asp.net/sonukapoor/category/5175.aspx

altova's xmlSpy is a good free tool.You can do xslt transforms without
having to write the code.
hopefully you'll get a better answer from the gurus on this forum :-)

yogi

--
Message posted via http://www.dotnetmonster.com
Nov 12 '05 #2
Hmmmm, why do I need to do xlst transformations? THat is, what do they do for
me? I'll check out your links, too. Thanks.
George

"chris yoker via DotNetMonster.com" wrote:
hi George,
this is not the best answer you'll get, but in the meantime, this is a good
article that tells you what to use in specific scenarios:
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Sonu Kapoor has lots of how to's that will fit your scenaio:
http://weblogs.asp.net/sonukapoor/category/5175.aspx

altova's xmlSpy is a good free tool.You can do xslt transforms without
having to write the code.
hopefully you'll get a better answer from the gurus on this forum :-)

yogi

--
Message posted via http://www.dotnetmonster.com

Nov 12 '05 #3
Yes, I like these links. Thanks!
George

"chris yoker via DotNetMonster.com" wrote:
hi George,
this is not the best answer you'll get, but in the meantime, this is a good
article that tells you what to use in specific scenarios:
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Sonu Kapoor has lots of how to's that will fit your scenaio:
http://weblogs.asp.net/sonukapoor/category/5175.aspx

altova's xmlSpy is a good free tool.You can do xslt transforms without
having to write the code.
hopefully you'll get a better answer from the gurus on this forum :-)

yogi

--
Message posted via http://www.dotnetmonster.com

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Azhar Bilgrami | last post by:
Dear Hi: Hope to see u in good health. " I want to migrate a database which is currently running Unix as Operating System and Oracle ver 6 as Database, it is also using oracle froms version 3...
8
by: Ralph Freshour | last post by:
I have multiple checkbox's created with an array name because I have many on the same web page - their names are like: frm_chk_delete frm_chk_delete frm_chk_delete frm_chk_delete etc. Here...
67
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
10
by: Mae Lim | last post by:
Dear all, I'm new to C# WebServices. I compile the WebService project it return no errors "Build: 1 succeeded, 0 failed, 0 skipped". Basically I have 2 WebMethod, when I try to invoke the...
8
by: rh0dium | last post by:
Hi all, I am using python to drive another tool using pexpect. The values which I get back I would like to automatically put into a list if there is more than one return value. They provide me...
5
by: BK-Chicago | last post by:
I am in the midst of porting a massive MFC application from VS6.0 to VS8.0. While i have fixed most of the compile time errors, i do have quite a linker error that i have not been able to resolve....
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
8
by: manmit.walia | last post by:
Hello Everyone, Long time ago, I posted a small problem I had about converting a VB6 program to C#. Well with the help with everyone I got it converted. But I overlooked something and don't...
5
by: forest demon | last post by:
i'm trying to create a .xsd file to validate the XML below(just a small snippet). i've tried a number of things and can come close, but i can't quite get it to do what i want. i'm able to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.