Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Given that the whole point of XML is to leave room for expansion, my impression is that an individual or company can create a "proprietary" DTD (a document type definition) that describes their own XML format. Each format can include different types of objects. For an example, go to Moreover.com, click on the developers link, and compare the different formats that are based on XML. For instance, there's Netscape's definition called RSS, and there's Moreover.com's own format. You may also want to take a look at the W3C Web site for some of the actual specs on XML and other related technologies like XPath and XSL (both of which are really cool).

Because of the structure of XML itself, pretty much any format is easy to parse. It's just a matter of picking a way to parse it in Perl and then accessing the data. Most often, a person wishing to parse an XML document would use one of the styles in XML::Parser. For instance, one can use the stream style by setting handlers or the the objects style.

So, it's not really a matter of the individual or company wanting to make XML "their own." RSS and other definitions have come about because of the desire to have a common format so that headlines can be passed between sites on the Web (e.g. Slashdot and Freshmeat). XML's intrinsic flexibility allows individuals and companies to roll their own.

-ppm


In reply to RE: RE: Doctype specific XML Validator by PotPieMan
in thread Doctype specific XML Validator by kilinrax

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (None)
    As of 2024-04-25 03:58 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found