[Simple-support] xs:any with depth elements
Brought to you by:
niallg
|
From: Eunkyoung L. <ek...@st...> - 2012-08-08 21:05:54
|
I have 2 questions.
First , I have a problem with deserialization. Xml has xs:any element and it have hierarchical child node. When I tried to search this problem, convertor can be used for xs:any. But I'm not sure whether it can cover hierarchical xml also.
<element name="app-specific">
<complexType>
<sequence>
<any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="skip">
<annotation>
<documentation>
<summary>Application specific data in XML form.</summary>
<remarks>An application can define any arbitrary XMLas it's data. It may or may not adhere toa published schema.</remarks>
</documentation>
</annotation>
</any>
</sequence>
</complexType>
</element>
Example
<app-specific>
<Thresholds> <!-- xs:any start -->
<Threshold>
<TypeId> 57664 </TypeId>
<Min> 100 </Min>
<Max> 50 </Max>
<Units>%</Units>
</Threshold>
</Thresholds> <!-xs:any end -->
</app-specific>
Second, I want to get some part of xml as text even element is inside, is it possible?
For example I want to get "<Thresholds><Threshold><TypeId> 57664 </TypeId><Min> 100 </Min><Max> 50 </Max><Units>%</Units></Threshold> </Thresholds>" as Text.
I want to parse it later or send it to other application.
Any help will be appreciated.
Aina Eunkyoung Lee
Samsung Telecommunications America
1301 E. Lookout Dr.
Richardson, TX 75082
Telephone : 972-761-7792
ek...@st...<mailto:mr...@st...>
|