Re: [Simple-support] xs:any with depth elements
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-08-09 08:35:12
|
You can not get it directly, however you can rebuild it within the converter with a StringBuilder. I am going to do an @Literal annotation to address this, however it may be a couple of months before I can do this. --- On Wed, 8/8/12, Eunkyoung Lee <ek...@st...> wrote: From: Eunkyoung Lee <ek...@st...> Subject: [Simple-support] xs:any with depth elements To: "sim...@li..." <sim...@li...> Received: Wednesday, 8 August, 2012, 1:39 PM 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... -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |