Subject:Creating schema from xml - how do I force all types to string? Author:Eric Riehl Date:13 Mar 2008 01:22 PM Originally Posted: 13 Mar 2008 01:21 PM
We use xml/xsd for a specialized purpose that requires most if not all elements to by typed as string, regardless of what the actual data looks like.
Is it possible to set Stylus Studio to type all elements as string as a default setting when "Create Schema from XML Content..."?
Subject:Creating schema from xml - how do I force all types to string? Author:(Deleted User) Date:18 Mar 2008 06:39 AM
Hi Eric,
the XMLSchema builder always tries to guess the best type given the sample data; if you need to force a xs:string you can either preprocess the XML data to make its content a generic string (i.e. replace each character with '#') or perform a two-step conversion from XML to DTD and from DTD to XSD.