Subjects
Home
VOTE Move XML Commons to Xerces
Commented: (XERCESJ 589) Bug with pattern restriction on long strings
: Xerces J 2 8 1 Release on Wednesday, September 13th
: Xerces J 2 9 0 Release on Wednesday, November 22nd
Commented: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1178) Error getting prefix for an attribute with no n
Updated: (XERCESJ 1244) XMLSchemaValidator does not contribute element 's
Some consideration about the xerces DOM implementation
Updated: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1227) Poor performance / OutOfMemoryError for sequenc
retain exception stack traces
Updated: (XERCESJ 1193) NPE or hang when parsing using the "continue afte
Future of NekoHTML
Commented: (XERCESJ 1203) NPE in XMLDTDProcessor
DOM Level 3 APIs for Xalan J and a new Xalan release (2 7 1)
: xml commons external 1 3 04 Release on Wednesday, November 22nd
Commented: (XERCESJ 1247) Incorrect location information on SAX when usin
XInclude exceptions how to mirror Xerces J functionality into Xerces C++?
First proposal on SoC project "Add support for the StAX (JSR 173) cursor API
: xml commons resolver 1 2 Release on Wednesday, November 22nd
Typo in RangeToken java Please check
Validator features
java lang ClassCastException when adopting Node
using the org apache xerces impl xs identity package
Updated: (XERCESJ 1257) buffer overflow in UTF8Reader for characters out
Problem with ref attributes and schema validation
Updated: (XERCESJ 122) XMLSchemaValidator does not contribute element 's d
Performance problem under load Xerces with Weblogic 9 x
remove ignored memory allocation
Commented: (XERCESJ 1177) SAXXMLStreamReader doesn 't always report namesp
Commented: (XERCESJ 977) Null pointer exception during DOM parsing
Commented: (XERCESJ 1197) Code cleanup for org apache xml serialize
Commented: (XERCESJ 1201) Initial contribution for StAX Event API
Updated: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special c
Commented: (XERCESJ 1199) SAXXMLStreamReader should attempt to register a
Commented: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special
Updated: (XERCESJ 589) Bug with pattern restriction on long strings
StackOverflow
xerces Range unnecessarily not garbage collectable if not detached
Updated: (XERCESJ 1178) Error getting prefix for an attribute with no nam
Bug in xs:redefine
Commented: (XERCESJ 1204) Can not set XMLEntityResolver for LSParser
Updated: (XERCESJ 1253) Prototype for SoC2007 project "Add support for th
Updated: (XERCESJ 1259) Add SteamFilter Function to SoC2007 project "Add
Assigned: (XERCESJ 444) SAXException thrown by EntityResolver is reported
Google Summer of Code 2007
Xerces J and XInclude relative path issue
Assigned: (XERCESJ 206) Stack overflow when using a schema validation
Commented: (XERCESJ 1215) Restrictions involving two levels of substituti
Closed: (XERCESJ 1203) NPE in XMLDTDProcessor
non overriding equals methoda
Resolved: (XERCESJ 1079) invalid value returned for TOTALDIGITS facet in
Xerces AS3 port
Updated: (XERCESJ 325) Regular Expression; Pattern "| " clause order de
Updated: (XERCESJ 1196) Javadoc generation fails on Java SE 5 0
Closed: (XERCESJ 1202) DTD validation on XIncluded documents when the sch
Created: (XERCESJ 1124) Nonspecific schema error message
a bug in xerces
Updated: (XERCESJ 1201) Initial contribution for StAX Event API
Closed: (XERCESJ 1254) Empty uris in targetNamespace attribute not report
Links
Home
Oracle database error code
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
extensible metadata schema

extensible metadata schema

2003-02-24       - By Praveen Peddi
Reply:     1     2     3     4     5  

Hi Bishal,
I like your suggestion, but I think I forgot to mention that my application is
implemented in Java and I am not sure how do I automatically generate XML from
schema using java. Do you know of any tool that does that?

Praveen
 ----- Original Message -----
 From: Bhasin, Vishal
 To: xerces-j-user@(protected)
 Sent: Monday, February 24, 2003 4:23 PM
 Subject: RE: extensible metadata schema


 Praveen,

 

 You can use XML-SPY to create a sample xml from a schema. You can use the
following to validate an XML against a schema

 

 -          xerces validation programmatically

 -          XML-SPY

 

 Cheers,

 

 Vishal

 

 -----Original Message-----
 From: Praveen Peddi [mailto:ppeddi@(protected)]
 Sent: Monday, February 24, 2003 11:13 AM
 To: xerces-j-user@(protected)
 Subject: extensible metadata schema

 

 Hi all,

 I work for a company that does an asset metadata integration from different
content management systems. We currently have an extensible schema where one
can add/remove metadata fields in the schema on the fly. Now my problem is to
take the input (mostly name value pairs) from any client and build the xml
document which should be valid against the schema. Since the schema is fully
extensible, the system doesn't know about it in advance.

 

 Now, my question is whats the best way to build the xml document from the
input, that should be valid against the schema. Is there a better way where I
can parse the schema and build the xml document based on that.

 

 Is there any API available to parse the schema and understand the schema
attributes etc...

 

 

 Praveen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META content="Microsoft Word 9" name=Originator><LINK
href="cid:filelist.xml@(protected)" rel=File-List><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
 <o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
 <w:Zoom>0</w:Zoom>
 <w:DocumentKind>DocumentEmail</w:DocumentKind>
 <w:EnvelopeVis/>
</w:WordDocument>
</xml><![endif]-->
<STYLE>@(protected) {
font-family: Wingdings;
}
@(protected) {
font-family: Tahoma;
}
@(protected) Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso
-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times
New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times
New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times
New Roman"
}
P.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
SPAN.EmailStyle15 {
COLOR: navy; mso-style-type: personal-reply; mso-ansi-font-size: 10.0pt; mso
-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family:
Arial
}
DIV.Section1 {
page: Section1
}
OL {
MARGIN-BOTTOM: 0in
}
UL {
MARGIN-BOTTOM: 0in
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
 <o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US style="tab-interval: .5in" bgColor=white>
<DIV><FONT face=Arial size=2>Hi Bishal,</FONT></DIV>
<DIV><FONT face=Arial size=2>I like your suggestion, but I think I forgot to
mention that my application is implemented in Java and I am not sure how do I
automatically generate XML from schema using java. Do you know of any tool that
does that?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Praveen</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
#000000 2px solid; MARGIN-RIGHT: 0px">
 <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
 <DIV
 style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
 <A title=Vishal.Bhasin@(protected) href="mailto:Vishal.Bhasin@(protected)">Bhasin
,
 Vishal</A> </DIV>
 <DIV style="FONT: 10pt arial"><B>To:</B> <A title=xerces-j-user@(protected)
.org
 href="mailto:xerces-j-user@(protected)">xerces-j-user@(protected)</A>
 </DIV>
 <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, February 24, 2003 4:23
 PM</DIV>
 <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: extensible metadata
 schema</DIV>
 <DIV><BR></DIV>
 <DIV class=Section1>
 <P class=MsoNormal><SPAN class=EmailStyle15><FONT face=Arial color=navy
 size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"
>Praveen,<o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal><SPAN class=EmailStyle15><FONT face=Arial color=navy
 size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"><![if
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN class=EmailStyle15><FONT
 face=Arial color=navy size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">You
 can use XML-SPY to create a sample xml from a schema. You can use the
 following to validate an XML against a
 schema<o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal><SPAN class=EmailStyle15><FONT face=Arial color=navy
 size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"><![if
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal
 style="MARGIN-LEFT: 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1;
tab-stops: list .5in"><![if !supportLists]><SPAN
 class=EmailStyle15><FONT face="Times New Roman" color=navy size=2><SPAN
 style="FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-ascii-font-family:
'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font
-family: 'Times New Roman'">-<FONT
 face="Times New Roman" size=1><SPAN
 style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;
 </SPAN></FONT></SPAN></FONT></SPAN><![endif]><SPAN class=EmailStyle15><FONT
 face=Arial color=navy size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"
>xerces
 validation programmatically <o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal
 style="MARGIN-LEFT: 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1;
tab-stops: list .5in"><![if !supportLists]><SPAN
 class=EmailStyle15><FONT face="Times New Roman" color=navy size=2><SPAN
 style="FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-ascii-font-family:
'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font
-family: 'Times New Roman'">-<FONT
 face="Times New Roman" size=1><SPAN
 style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;
 </SPAN></FONT></SPAN></FONT></SPAN><![endif]><SPAN class=EmailStyle15><FONT
 face=Arial color=navy size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">XML
-SPY
 <o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal><SPAN class=EmailStyle15><FONT face=Arial color=navy
 size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"><![if
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal><SPAN class=EmailStyle15><FONT face=Arial color=navy
 size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"
>Cheers,<o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal><SPAN class=EmailStyle15><FONT face=Arial color=navy
 size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"><![if
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal><SPAN class=EmailStyle15><FONT face=Arial color=navy
 size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"
>Vishal<o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal><SPAN class=EmailStyle15><FONT face=Arial color=navy
 size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"><![if
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Tahoma color=black
 size=2><SPAN
 style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Tahoma">-----Original
 Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Praveen
 Peddi [mailto:ppeddi@(protected)]<BR><B><SPAN
 style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, February 24, 2003 11:13
 AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <A
 href="mailto:xerces-j-user@(protected)">xerces-j-user@(protected)</A>
<BR><B><SPAN
 style="FONT-WEIGHT: bold">Subject:</SPAN></B> extensible metadata
 schema</SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
 size=3><SPAN
 style="FONT-SIZE: 12pt"><![if !supportEmptyParas]><![endif]>&nbsp;<o:p></o:p>
</SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=black
 size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Hi
 all,</SPAN></FONT><FONT color=black><SPAN
 style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=black
 size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">I work
 for a company that does an asset metadata integration from different content
 management systems. We currently have an extensible schema where one can
 add/remove metadata fields in the schema on the fly. Now my problem is to
take
 the input (mostly name value pairs) from any client and build the xml
document
 which should be valid against the schema. Since the schema is fully
 extensible, the system doesn't know about it in advance. </SPAN></FONT><FONT
 color=black><SPAN
 style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
 color=black size=3><SPAN
 style="FONT-SIZE: 12pt; COLOR: black">&nbsp;</SPAN></FONT><FONT
 color=black><SPAN
 style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=black
 size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Now,
my
 question is whats the best way to build the xml document from the input, that
 should be valid against the schema. Is there a better way where I can parse
 the schema and build the xml document based on that.</SPAN></FONT><FONT
 color=black><SPAN
 style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
 color=black size=3><SPAN
 style="FONT-SIZE: 12pt; COLOR: black">&nbsp;</SPAN></FONT><FONT
 color=black><SPAN
 style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=black
 size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Is
 there any API available to parse the schema and understand the schema
 attributes etc...</SPAN></FONT><FONT color=black><SPAN
 style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
 color=black size=3><SPAN
 style="FONT-SIZE: 12pt; COLOR: black">&nbsp;</SPAN></FONT><FONT
 color=black><SPAN
 style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
 color=black size=3><SPAN
 style="FONT-SIZE: 12pt; COLOR: black">&nbsp;</SPAN></FONT><FONT
 color=black><SPAN
 style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=black
 size=2><SPAN
 style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Praveen</SPAN><
/FONT><FONT
 color=black><SPAN
 style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
</DIV></BLOCKQUOTE></BODY></HTML>