beginner question: xml parsing
-
Hi, I have a small project: I have an XML file as input, and I need to find certain "tokens" inside it. For example, I need to find all of the "Prop1" properties (and their values), inside all "TAG1" tags: .. Prop1=value1 <<-- I need to find this .. I have no idea how to work with XML. Also, I'm looking for sth that works on NT4.0 sp5 without the need to install anything. Where do I start????? Thanks. /=/=/=/= Deus /=/=/=/=
-
Hi, I have a small project: I have an XML file as input, and I need to find certain "tokens" inside it. For example, I need to find all of the "Prop1" properties (and their values), inside all "TAG1" tags: .. Prop1=value1 <<-- I need to find this .. I have no idea how to work with XML. Also, I'm looking for sth that works on NT4.0 sp5 without the need to install anything. Where do I start????? Thanks. /=/=/=/= Deus /=/=/=/=
sagmam wrote: Where do I start????? Here[^]. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com
-
Hi, I have a small project: I have an XML file as input, and I need to find certain "tokens" inside it. For example, I need to find all of the "Prop1" properties (and their values), inside all "TAG1" tags: .. Prop1=value1 <<-- I need to find this .. I have no idea how to work with XML. Also, I'm looking for sth that works on NT4.0 sp5 without the need to install anything. Where do I start????? Thanks. /=/=/=/= Deus /=/=/=/=
sagmam wrote: Also, I'm looking for sth that works on NT4.0 sp5 without the need to install anything. I dunno if you're going to find that, you probably need the Microsoft XML stuff installed. I could be wrong about that, but certainly your starting point is XSL, the language used to generate a document from input XML. I should probably do some articles, but either way, there's plenty of info on the web. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
-
Hi, I have a small project: I have an XML file as input, and I need to find certain "tokens" inside it. For example, I need to find all of the "Prop1" properties (and their values), inside all "TAG1" tags: .. Prop1=value1 <<-- I need to find this .. I have no idea how to work with XML. Also, I'm looking for sth that works on NT4.0 sp5 without the need to install anything. Where do I start????? Thanks. /=/=/=/= Deus /=/=/=/=
A few questions. What do you mean by properties. In XML you can have child elements data or Attributes of an element Second. Can you clarify what you mean by without installing anything? If you mean not installing any dll's (i.e. not updating the MSXML updates) only, that is quite different than anything. i.e. if you have a code only solution you still need to install it. I will assume you mean the first case, so code only is ok. If that is correct my code found here at http://www.codeproject.com/soap/xmlmabparser.asp (sorry no clickty with html turned off for XML sample.) can be edited to not include the MSXML parsing feature and use only an internal parser. The internal parser is about 1/10 th as fast though and please read my caveats on how text blocks are handled. From there it is just a matter of stepping through the child elements of all elements looking for the data sets you wish, via the first/next child element functions.
-
A few questions. What do you mean by properties. In XML you can have child elements data or Attributes of an element Second. Can you clarify what you mean by without installing anything? If you mean not installing any dll's (i.e. not updating the MSXML updates) only, that is quite different than anything. i.e. if you have a code only solution you still need to install it. I will assume you mean the first case, so code only is ok. If that is correct my code found here at http://www.codeproject.com/soap/xmlmabparser.asp (sorry no clickty with html turned off for XML sample.) can be edited to not include the MSXML parsing feature and use only an internal parser. The internal parser is about 1/10 th as fast though and please read my caveats on how text blocks are handled. From there it is just a matter of stepping through the child elements of all elements looking for the data sets you wish, via the first/next child element functions.