Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. beginner question: xml parsing

beginner question: xml parsing

Scheduled Pinned Locked Moved XML / XSL
tutorialquestionxmljsonlearning
5 Posts 5 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sagmam
    wrote on last edited by
    #1

    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 /=/=/=/=

    RaviBeeR C M 3 Replies Last reply
    0
    • S sagmam

      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 /=/=/=/=

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #2

      sagmam wrote: Where do I start????? Here[^]. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

      1 Reply Last reply
      0
      • S sagmam

        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 /=/=/=/=

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • S sagmam

          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 /=/=/=/=

          M Offline
          M Offline
          Michael A Barnhart
          wrote on last edited by
          #4

          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 1 Reply Last reply
          0
          • M Michael A Barnhart

            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 Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            I meant the attributes. At least, this is what I need at the moment. I'll look into it, thanks.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups