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

RE: XML Documents Complexity


mustafa hilal
Hello Mustafa.

> I would appreciate if you guys can provide me with
> some XML source documents you are using or links where
> I can find these documents, as this would definitely
> be helpful for me.

I've had the same problem.  (I'm writing an XML processor and I needed test
XML).  Although I posted a request to comp.text.xml, nobody helped me out so
I've been forced to find some XML docs on the web....

There is a (rather big and overwhelming) XML Test Suite with documents of
varying degrees of complexity over at the W3C:  http://www.w3.org/XML/Test/
. I'm sure that some of those docs may be helpful for you; you only have to
mine through them! :-/

Since my processor is written in JS, I've been testing speed using a
modified version of the JS speed-tester (with an XML document) over at
http://jsxml.sourceforge.net/test.html .

I've also been testing my processor with this XML (wrapped in JS strings):

var endl  = '\n';
var data  =	'aaa<?xml version="1.0" ?>' + endl;
    data +=	'<!-- comment1 -->' + endl;
    data +=	'<!-- comment2 -->' + endl;
    data +=	'<?xml-stylesheet href="mystyle.css" type="text/css"?>' + endl;
    data +=	'<!-- comment3 -->' + endl;
    data +=	'<root>' + endl;
    data +=		'Text text and more text' + endl;
    data +=		'Text text and more text' + endl;
    data +=		'<element1>' + endl;
    data +=			'<child1 a="7">' + endl;
    data +=				'Text text and more text' + endl;
    data +=				'Text text and more text' + endl;
    data +=			'</child1>' + endl;
    data +=			'<child2   a =  "49" b="21" >' + endl;
    data +=			'</child2>' + endl;
    data +=			'<child3 b="7"/>' + endl;
    data +=			'<child4 g = "p  7"  />' + endl;
    data +=			'<child5/>' + endl;
    data +=			'<child6 />' + endl;
    data +=		'</element1>' + endl;
    data +=		'Text text and more text' + endl;
    data +=		'<element2>' + endl;
    data +=			'Text text and more text' + endl;
    data +=			'<!-- comment4<> -->' + endl;
    data +=			'<![CDATA[' + endl;
    data +=				'<!-- NOT A COMMENT -->' + endl;
    data +=				'<b>not XML &amp;</b>' + endl;
    data +=				'<p><b>don\'t do this in HTML</p></b>' + endl;
    data +=			']]> bla bla' + endl;
    data +=			'Text text &amp; more text' + endl;
    data +=			'Text text and more text' + endl;
    data +=		'</element2>' + endl;
    data +=		'<element3>' + endl;
    data +=	        '<?pi type="wha where when?" ?>' + endl;
    data +=		'</element3>' + endl;
    data +=	'</root>' + endl;
    data +=	'<!-- comment5 <notatag att="one"> -->' + endl;
    data +=	'<!-- comment6 -->' + endl;
    data +=	'<?pi  ?>' + endl;

	document.write("<p>it's working...</p>");

I'll leave it as an exercise for the reader (you) to unwrap the JS; sorry!
;-)

--
Jimmy Cerra
jc2astro@h...
=============================================
"my mind is slipping away...
                   ...day by glorious day"
Robin Gorkin
=============================================


> -----Original Message-----
> From: Mustafa Hilal Qureshi [mailto:mustafa_hilal@y...]
> Sent: Friday, June 14, 2002 7:01 PM
> To: xml-dev@l...
> Subject:  XML Documents Complexity
>
> Hello Everyone,
>
> As a part of my research project, I am interested in
> having an XML library, comprising of various varying
> XML documents (in terms of size, complexity etc.).
> These XML docs will be a first step in exploring the
> ways for determining the complexity of XML documents.
>
> I would appreciate if you guys can provide me with
> some XML source documents you are using or links where
> I can find these documents, as this would definitely
> be helpful for me.
>
> Thanks in advance.
>
> Mustafa.
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>



PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.