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

Validation of XUpdate

  • To: xml-dev@l...
  • Subject: Validation of XUpdate
  • From: Alan Gutierrez <alan-xml-dev@e...>
  • Date: Fri, 3 Jun 2005 12:17:29 -0400
  • Mail-followup-to: xml-dev@l...
  • User-agent: Mutt/1.4.1i

validation crack
    I want to validate updates to a document made via XUpdate.

    At this point, I primarily wish to remove the ignorable white
    space from the updated document as it is updated.

    I have no experience with validation. I'm assuming that it is
    possible to validate an individual node using one of existing
    Schema engines, but I have no idea where to start.

    There are two methods to pursue.

    1) Create an XML Schema for XUpdate, use nested XML Schemas.

        If this removes whitespace, and validates the XUpdate
        statement, I can then insert the result.
        There are some use cases of XUpdate, inserting a text node,
        where I am certian you need to look at the result.

    2) Use a validation API that answers the question, "is this
        node, given this parsed schema, valid it it's current
        context?" This seems to be called "partial validation".

    If I pursue 1) then I'll have to learn a lot of new things
    before I can strip that whitespace. (It seems like I'll be
    hacking XML Schema for every update statement.)

    If I pursue 2) I'll be able to swap out schema implementations.

    I'm reading through javax.xml.validation for a crack at 2).
    It seems to take a node and validate all the children. I'm not
    sure if this is what I want. If I add an attribute to the root
    node of a large document, I don't need to validate the entire
    document, just the attributes of the newly modified node.

    And insight is appreciated.


Alan Gutierrez - alan@e...
    - http://engrm.com/blogometer/index.html
    - http://engrm.com/blogometer/rss.2.0.xml


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