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 structure | Messed up text |
|---|---|
…
PPSDRAWINGS> | …
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
Try using the CDATA attribute.
Thanks for the suggestion. It just strips out the CDATA symbols too.
--Thys
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.
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.
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.