Skip to main content
Question

Put output of an XSD Driven XML Writer into a attribute instead into a file.


hasant1973
Contributor
Forum|alt.badge.img+3

I use a XSD Driven XML Writer to compose a XML file.

Afterwards I read the file and send it with the HttpCaller to a SOAP Endpoint of some application.

Is is possible to skip the "Save to File" "Read from File" part and directly write into a XML attribute of some feature?

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+53

I do not know of a way. What I do is write the file to a temp location using a TempPathnameCreator to avoid temp files which need to be deleted afterwards. But you still have the extra I/O you probably want to optimize?


hasant1973
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • July 5, 2023
nielsgerrits wrote:

I do not know of a way. What I do is write the file to a temp location using a TempPathnameCreator to avoid temp files which need to be deleted afterwards. But you still have the extra I/O you probably want to optimize?

The FeatureWriter looked promising to me and I tried setting up a "XSD Driven XML" inside the FeatureWriter. But it also requires a file ("dataset") where the data is stored. Could not discover any settings where I could let it write the xml into a output of the transformer component.


nielsgerrits
VIP
Forum|alt.badge.img+53
hasant1973 wrote:

The FeatureWriter looked promising to me and I tried setting up a "XSD Driven XML" inside the FeatureWriter. But it also requires a file ("dataset") where the data is stored. Could not discover any settings where I could let it write the xml into a output of the transformer component.

Not sure if I understand what you need, but the DataSet can be an attribute or concatenated attributes. For example

@Value(_pathname)\result.xml

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings