[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Embedding XML in another XML

Subject: Re: Embedding XML in another XML
From: "Betty Harvey harvey@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Jun 2018 13:31:46 -0000
Re:  Embedding XML in another XML
Willem:

You can use a CDATA section to embed your XML.  The parser will ignore
anything in a CDATA section.

<?xml version=b1.0b?>

<root>

  <element>

<![CDATA[

    <?xml version="1.0" encoding="utf-16"?>
      <AXFRoot>
        <MAObject type="default" mdclass="EPISODE">
           <GUID dmname=""&gt;595233000&lt;/GUID>

]]>

  .....

  </element>

</root>


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                        | Phone:  410-787-9200  FAX: 9830
Electronic Commerce Connection, Inc. |
harvey@xxxxxxxxxx                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com  <http://www.eccnet.com>         |
http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
 Member of XML Guild (www.xmlguild.org)

On Tue, Jun 26, 2018 at 7:38 AM, Willem Van Lishout
willemvanlishout@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Hi,
>
>
>
> Ibm required to produce an XML file like this using XSLT 1.0:
>
>
>
> <?xml version=b1.0b?>
>
> <root>
>
>   <element>
>
>     &lt;?xml version="1.0" encoding="utf-16"?&gt;
>       &lt;AXFRoot&gt;
>         &lt;MAObject type="default" mdclass="EPISODE"&gt;
>            &lt;GUID dmname=""&gt;595233000&lt;/GUID&gt;
>
>   .....
>
>   </element>
>
> </root>
>
>
> So basically I have to put a string-encoded XML structure inside another
> XML. While I'm sure this is theoretically possible by just using
> <xsl:text>, this does not seem like a sustainable way of working with long
> and deep structures.
>
>
> Is this possible without resorting to 'heavier' programming solutions?
>
>
> If XSLT 2.0 or 3.0 can offer a solution I'd also like to hear.
>
>
> Unfortunately I am not able to adapt the software on the other side.
>
>
> Thanks,
>
> Willem
>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <-list/480526> (by
> email <>)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.