Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2006, 05:39 AM
Authorized User
 
Join Date: Jan 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default validate tags in word document

how could I validate that tags in word document are missing or damged
(if all start tags have matching pair of end tags)

sample:
<Amend> blblbllblblblb <Article> G </Article>
          <NumAm> 123 </NumAm>

kljkjdkjkskskdflskdjskfjksdjfksdjf
</Amend>

<Amend> blblbllblblblb <Article> G </Article>
          <NumAm> 123 </NumAm>

kljkjdkjkskskdflskdjskfjksdjfksdjf
</mend>

I would like to check if every start tag has its end tag and if not higlight the tags which are missing start or end tag, and also show me where tag is missing (If <Amend> is missing </Amend> or </Amend> is missing <Amend> -show me where is this error in document)



 
Old February 8th, 2006, 06:07 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Any XML parser will give you this information. For example, just load the document into an XML editor like Stylus Studio.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old February 8th, 2006, 06:15 AM
Authorized User
 
Join Date: Jan 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you plizz tell me where to get one free parser
and if I understand you right this Stylus studio is a parser or or just XML editor
sorry for my stupidity but I am new to all this

thnx

 
Old February 8th, 2006, 09:24 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Free XML parsers are readily available for example as part of the Java or .NET platforms. There are also plenty of good XML editors, which will give you access to an XML parser. Products like Stylus Studio, XML Spy, and Oxygen do a lot more than just editing and parsing. I suggest you search around to find the tools that meet your need - the information is readily accessible.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Document to PDF BSkelding ASP.NET 1.0 and 1.1 Professional 2 July 19th, 2013 04:53 AM
validate start and end tags saban Word VBA 1 January 13th, 2006 01:11 PM
Protect a Word document zengfu Excel VBA 1 March 28th, 2005 11:00 AM
Protect a Word document zengfu Pro VB 6 0 March 28th, 2005 08:40 AM
ASP - Word Document mapaquin Classic ASP Professional 1 August 11th, 2003 06:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.