Stop PDM from stripping <> characters

I have an XML file, an XML data card, all the attributes mapped and a nice SQL function that extracts a data set into a block of XML.

The data is written correctly between the database and the data card, leaving the nicely formed XML in place.

When the file attribute moves the block of XML from and edit field on the data card into the file schema, it wipes out the <> symbols and replaces them with < and > respectively, killing the XML schema.

The correct structureMessed up text

…            

      

      

 

    116309

    0.01

    APPROVED FOR USE

    217 test part name

    217 test part BoM description

 

 

    116316

    0.01

    APPROVED FOR USE

    316 Obj_Name

    316 Obj_Description

 

PPSDRAWINGS>

…

             

      

      

 

    116309

    0.01

    APPROVED FOR USE

    217 test part name

    217 test part BoM description

 

 

    116316

    0.01

    APPROVED FOR USE

    316 Obj_Name

    316 Obj_Description

 

PPSDRAWINGS>

The red text is in a single edit field.  I want the edit field to leave my text alone-- noooo toucheee my stuffs!

Any help would be most gratefully received.

Regards,

Thys

SolidworksSolidworks Pdm enterprise Pdm
Answers 4
LY
LY 2016-06-08 Best Answer

Try using the CDATA attribute.

TC
TC 2016-06-08

Thanks for the suggestion.  It just strips out the CDATA symbols too.

--Thys

LY
LY 2016-06-08

The only thing you're going to be able to do then is create additional variables and map them accordingly.

Block Name: Drwg_Number

Attribute: PPStransmittal/PPSDRAWINGS/PPSDRAWINGS/PPSDRAWINGS/Drwg_Number

Do you need that many PPSDRAWINGS children of PPSTransmittal?

EDIT: Come to think of it this won't work looking at your schema. Sorry. Enhancement request time, or, create an add-in to handle the formatting.

TC
TC 2016-06-08

If you mean the 2-deep PPSDRAWINGS, no I don't -- artifact of some other wrinkle, but not significant,  so a feasible (without the abovementioned wrinkle) schema would be as shown below, quite possibly skipping the outer grouping too.



...

    

        

               blehblehbleh

               blehblehbleh

               blehblehbleh

        

        

               blehblehbleh

               blehblehbleh

               blehblehbleh

        

        

               blehblehbleh

               blehblehbleh

               blehblehbleh

        

    

There could be from 1 to N drawings, so it is not practical to make variables -- the N+1 drawing would result in failure.

What I need is a CAST for the PDM variable for UnicodeText in addition to Decimal, Integer, Date, Text and Boolean.