XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Bob ChauvinSubject: Can CreateElement method validate and error out if I'm adding an element that is Not identified in the schema?
Author: Bob Chauvin
Date: 18 Jan 2006 11:07 AM
Originally Posted: 18 Jan 2006 11:04 AM
I'm building an xml doc in vb.net, and have an xsd. I'm adding nodes to the root elemnent like so:<br> xmlNode = xmlDoc.CreateElement(ol_ItemProperty.Name)<br> xmlText = xmlNode.AppendChild(xmlDoc.CreateTextNode(ol_ItemProperty.Value.ToString))<br> xmlNode = xmlContacts.AppendChild(xmlNode)<br> <br> My question is this: should the CreateElement method validate and error out if I'm adding an element that is Not identified in the schema? The reason I'd like to check the schema or have it automatically error is because I'm looping through a list of properties that can change over time, and my schema is what I want to build to, skipping anything not in the schema.

Posttop
Tony LavinioSubject: Can CreateElement method validate and error out if I'm adding an element that is Not identified in the schema?
Author: Tony Lavinio
Date: 18 Jan 2006 12:07 PM
This is the Stylus Studio Developer Network, and we provide free
support here for our customers, prospects, and even some other
XML-related questions when we're in the mood (which is most of the
time.)

But VB questions are pretty far off. You might want to try a
Microsoft-specific forum.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.