Download presentation
Presentation is loading. Please wait.
Published byAdele McGee Modified over 9 years ago
1
Using XML as the Foundation for a Network Resource Description Language Peter A. Dinda
2
2 Motivation Network Resource Interface for external tools –A standard, text-based representation for network data –Integrating our own tools such as RPS –Integrating other tools such as NWS –Enhancing existing text-based interfaces –Potentially proposing a Grid standard Network data is structured data
3
3 XML in a Nutshell #1 Standard for presenting structured information via tag-based markup –Like HTML, except user gets to define the tags and their grammar “DTD” or “Schema” (can be part of doc) –Unlike HTML, “well-formed” XML is always a tree, so it’s easy to parse Tags can be anything but must nest –Unlike HTML, no styles or links are defined They are DTDs! XSL, Xlink, Xpointer, blah blah Self-defining text-based structured data format
4
4 XML in a Nutshell #2 “Well-formed” XML –It can be produced by the XML grammar “Valid” XML –Well-formed and the document can be produced by your grammar (ie, the DTD) Free XML parsers usually don’t “validate” –Probably not much of an issue for resource data http://www.xml.com http://www.w3.org/XML/
5
5 XML Tools Free parsers available for C, Java, Perl, Python Lots of commercial stuff –Microsoft (IE4, IE5, XML Notepad, lots of others) Most parsers/tools don’t support the DOM interface and so are not interchangeable
6
6 DTD/Schema Standardization XSL (styles), Xlink/Xpointer (links),... DTDs being developed for very specific kinds of information –News stories http://www.xmlnews.org/dtds/xmlnews-story.dtd We could propose DTDs to the Grid Forum so that tools could exchange information
7
7 Proof of Concept Wrote XML serialization for RPS’s LoadMeasurement objects Used Expat, a free (non-validating) XML parser written in C
8
8 An XML Serialized LoadMeasurement <!DOCTYPE HostLoadList [ ]> pyramid.cmcl.cs.cmu.edu 1000000 1 935508266.313773 0.300000 0.200000 0.100000 0.050000 DTD - the grammar for the HostLoadList document that follows Document - the serialized LoadMeasurement object
9
9 Effort/Efficiency
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.