[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Fast validating XML parser

  • From: Jimi Kolawole <okolawole@s...>
  • To: 'Michael Kay' <mike@s...>,"'Llacuna, Phillip V'" <phillip.v.llacuna@l...>,xml-dev@l...
  • Date: Mon, 22 Oct 2007 16:07:11 -0500

RE:  Fast validating XML parser
Title: Message
Pls how do I express the following in xml

typedef unsigned short CMD_t[4];

CMD_t m_ToolDisableCommand[72];


Hence m_ToolDisableCommand is a 72 x 4 array of short.

This is what i currently have but its not validating.

<xs:complexType name="myCMD_t">


<xs:element ref="xs:unsignedShort" minOccurs="4" maxOccurs="4" />



<xs:complexType name="CMD_t">


<xs:extension base="myCMD_t">


<xs:element ref="myCMD_t" minOccurs="72" maxOccurs="72" />





-----Original Message-----
From: Michael Kay [mailto:mike@s...]
Sent: Monday, October 22, 2007 2:42 PM
To: 'Llacuna, Phillip V'; xml-dev@l...
Subject: RE: Fast validating XML parser

I suspect that an off-the-shelf parser like Xerces is quite fast enough if your application invokes it intelligently. You might find parsers that are 20% faster than that, but I think the order-of-magnitude improvement will come by changing your application architecture: in particular, change the driving code from Javascript to Java.
Xerces has a fairly high start-up cost so it's worth reusing the parser for multiple documents. However, that's more of a factor when your files are 200 bytes rather than 50K bytes.
Michael Kay

From: Llacuna, Phillip V [mailto:phillip.v.llacuna@l...]
Sent: 22 October 2007 19:32
To: xml-dev@l...
Subject: Fast validating XML parser



We need a very fast validating XML parser and was wondering if anyone has any suggestions? Our project involves one main XML file with about 1200 supporting XML files (each about 50KB or less). Our current environment calls on a java script to validate each file against the DTD, but it is painfully slow to process the complete project. We suspect that that the overhead in creating the java environment each time the script is called is slowing down the process. I have searched (and am still searching) the web for a good alternative. Any suggestions?


Phillip Llacuna

Multi-media Design Engineer

Lockheed Martin

Ph:   (651) 456-7152

Fax: (651) 456-2643


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.