span8
span4
span8
span4
Hello there I have a table with the configuration bellow attribute name: fme_feature_type_name represent the parent and the attribute: name is the child,we want
to write to have an XML each parent with its child
when I use the template I am getting all features attributes name repeated for each parent name
i am sure I am missing something in the root or sub configuration
Have a look at the attached workspace template,hopefully I've understood your requirements.
When there's only a single input source to the XMLTemplater,you can use the Sampler and DuplicateFilter to preprocess the input according to key attributes:
Thanks for your response
I am not able to download the WS the ulr is giving this error (
Looks like it's the forum that's bugging.
Try this link:https://www.dropbox.com/s/g3yr27d7wpbtknu/xmltemplater.fmwt?dl=1
Thanks so much for the answer this what I was looking for
the mistake I was doing is on this
{fme:process-features("COLUMNS","fme_feature_type_name",fme:get-attribute("fme_feature_type_name"))}
{fme:process-features("COLUMNS",fme:get-attribute("fme_feature_type_name"))}
could you please explain why should we both "fme_feature_type_name",fme:get-attribute("fme_feature_type_name")
the logic is get the columns from features type name ,
The function call with this syntax executes the sub template expression for every feature (entered into the sub port) which has the specified value in the attribute.That is,it works like the Group By.
fme:process-features( ,, )
See also here to learn more:XQuery Functions
Thanks for your response
attached the excel file for the data we want to convert to XML
and the output we are looking for is
we want to replace thelayer namewith the value of the attribute( fme_feature_type_name)
and the id with the value in the attribute(name )
XML tag order and whitespaces3 Answers
Converting shape file to xml file1 Answer
convert xml to csv1 Answer
XMLTemplater with subtemplate not retaining nesting correctly1 Answer
© 2019 亚搏在线Safe Software Inc |Legal