xml validation - Validating XML documents and working with numbers -


suppose have xml document lists of sales made items. amongst list of price values, there "total" elements sum of set of items. xml document generated somewhere, , validate xml verify

  1. the form correct
  2. the content correct. example, total of set of child elements equal sum of of values associated each child.

the xml documents used standard medium between multiple programs, important data accurate. there checks done xml exporter, wondering whether possible validate xml @ end ensure correct? , if correct valid?

xsd useful validating xml in proper format , may "1. form correct". example, xsd used validate hasn't entered item sku price needed.

however, xsd not tool validating business logic in "2. content correct". that, need custom validate logic using programming language of choice, perhaps of xpath extract elements.

-larry


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -