Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: xml parsers: do I need one?

by bunnyman (Hermit)
on Aug 28, 2003 at 14:50 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found