Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 8th, 2006, 05:39 AM
Authorized User
 
Join Date: Jan 2006
Location: , , .
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)



Reply With Quote
  #2 (permalink)  
Old February 8th, 2006, 06:07 AM
mhkay's Avatar
Wrox Author
Points: 18,481, Level: 59
Points: 18,481, Level: 59 Points: 18,481, Level: 59 Points: 18,481, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,960
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
Reply With Quote
  #3 (permalink)  
Old February 8th, 2006, 06:15 AM
Authorized User
 
Join Date: Jan 2006
Location: , , .
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

Reply With Quote
  #4 (permalink)  
Old February 8th, 2006, 09:24 AM
mhkay's Avatar
Wrox Author
Points: 18,481, Level: 59
Points: 18,481, Level: 59 Points: 18,481, Level: 59 Points: 18,481, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,960
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:08 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.