473,396 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Validation of XUpdate


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.

Cheers.

--
Alan Gutierrez - al**@engrm.com
- http://engrm.com/blogometer/index.html
- http://engrm.com/blogometer/rss.2.0.xml
Jul 20 '05 #1
0 1229

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
0
by: Ren, Ziheng | last post by:
Hi, i have already found a xindice based java gui. but it appears always a big problem from the xupdate functions. If i tip some commands in and try to execute them, it will appear an exception,...
0
by: Richard Light | last post by:
Hi, I am looking to develop a change-logging framework for XML documents, and am considering adopting XUpdate as a syntax for both making changes happen and recording what changes have been made...
2
by: wumingshi | last post by:
Hi, When validating an XML instance, sometimes the schema is not enough to expression the validation rules. Additional validation rules may be expressed in an application-specific way. For...
4
by: Tim Meagher | last post by:
I am trying to use both validation controls and to add submit button attributes, but when I add the button attributes, the javascript fpr the validation controls is no longer created for the page. ...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
6
by: Stephen | last post by:
Hi, the validation controls dont work on Netscape or Mozilla and only on Internet Explorer why? How do i correct this problem? Thanks
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.