get exData body of a static text

Avatar

Avatar

dariush1972

Avatar

dariush1972

dariush1972

02-11-2011

Hi experts,

I've got a static text as follow (xml source)

        <draw minH="20mm" name="Text" w="190mm" x="0.6477mm" y="201.971mm">

            <ui>

               <textEdit>

                  <margin/>

               </textEdit>

            </ui>

            <value>

               <exData contentType="text/html">

                  <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.5.6290.0"><p style="text-align:justify;font-family:Arial;text-decoration:none">Il sottoscritto<span style="xfa-spacerun:yes"> </span</body>

               </exData>

            </value>

         </draw>

I need to change the body formatting dynamically.

I've tried with exData.saveXML() function but this returns

<?xml version="1.0" encoding="UTF-8"?>

<exData contentType="text/html"/>

how can I get the body xml?

Best regards,

Dariush

View Entire Topic

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

03-11-2011

It worked for me ...here is what I got back

?xml version="1.0" encoding="UTF-8"?>

<exData contentType="text/html" xmlns="http://www.xfa.org/schema/xfa-template/3.5/">

   <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.5.6290.0"><p style="text-decoration:none">Rich static text<span style="xfa-spacerun:yes">  </span><span xfa:embed="#floatingField000041" xfa:embedMode="raw" xfa:embedType="uri"/></p></body>

</exData>

I highlight the text from the field in the returned value in green

Paul