Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: xml parsers: do I need one?

by bunnyman (Hermit)
on Aug 28, 2003 at 14:50 UTC ( #287389=note: print w/replies, xml ) Need Help??

in reply to xml parsers: do I need one?

The XML file is used by major applications where I work for, and is not going to change for my new app.

Does that mean that they are not using XML parsers either? This is a Bad Thing:

  • These apps may not be following the XML standard exactly right. This would mean that you have files which look like XML but are actually not, so they cannot be parsed by a real XML parser.
  • Or the XML files may follow the standard exactly right, but the input code makes invalid assumptions about the form of the XML. At some point in the future, a programmer who believes she is dealing with an XML file may make a change which produces valid XML data, but it cannot be read by your parsing code.
  • Because of both of the above items, you are not reaping the full benefits of using XML - a standard format for data interchange. Even if all your apps work together to support your own brand of not-exactly-XML-but-close, other apps should be able to create XML that you can read, or read XML that you created.

If your new app does not use an XML parser either, that only contributes to the existing problem. It will need to be updated if the input file changes in format.

Replies are listed 'Best First'.
Re: Re: xml parsers: do I need one?
by regan (Sexton) on Aug 28, 2003 at 15:14 UTC
    sorry, the main app is written in java, uses the DOM parser, and parses and process what it needs in a couple of minutes. When I tried what I thought would be a really quick and dirty first pass using xml::Parse, it took 35 minutes!
    I want to do the right thing, and use a parser, but yowza! Maybe I should go back and look at my code, and see what I'm doing wrong.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://287389]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2022-08-18 22:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found