XML/XSD validation for a Word doc -


i have document updated , consists of text , tables. tables have 2 rows, 1 ranges of numbers , second single number.

i check if number in row 2 within range given in row 1. using xmls , xsds. original thought create xsd word doc, xml word doc (save file .xml) , run both files through vaidator. however, having trouble writing xsd. lot of sources online generate xsd , xml , use xsd validate xml. problem if this, i'm not seeing ranges specified in xsd. looks doc formatting specifications. know if there tools task or need generate xsd manually. ultimate goal automate process such given doc, have xsd , can generate xml, can change values in xml , see if in valid range according xsd(which should check ranges). stuck on how can automate process (or if there way automate it)

edit: how 1 can restrictions ranges in schema - http://www.w3schools.com/xml/schema_facets.asp

preface: ken white right when comments should improve existing question rather re-ask without substantial improvement. i'll place answer here since version of question better other; please delete other.

microsoft word documents since word 2007 saved in docx format follows office open xml (ooxml) standard. start reading office open xml overview. knowing this, you'll able construct reasonable searches find ooxml tutorials , code samples. understand not easy first project in xml.

i check if number in row 2 within range given in row 1. using xmls , xsds.

xsds not appropriate here. xpath better suited retrieving , checking values in manner.

my ultimate goal automate process such given doc, have xsd , can generate xml, can change values in xml , see if in valid range according xsd(which should check ranges).

again, although there xsds ooxml (the xml behind docx), support extreme amounts of baggage unnecessary project. instead streamlined access data seek via xpath calls language of choice. you'll have understand data model, sure read ooxml references mentioned above first.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -