Skip to main content
Participant
May 9, 2008
Question

How to capture element/attribute

  • May 9, 2008
  • 2 replies
  • 477 views
We have an export client that converts the Frame file to xml. We are using "LightTitle" element at various places, this element also has an attribute called "LightColor".

When I look at the output xml, I can see all LightTitle elements, but only some of them (2 out of 10) have the LightColor attribute!

How can we capture the attribute associated with a specific element and output it to the final xml?

Thanks.
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participating Frequently
June 19, 2008
If your LightColor attributes do not contain ant content - then they will not be written out - you can change the rules to add a 'dummy' if you need them in the XML - OR -(and probably easier) post process your XML and add the missing elements/attribute pairs based on rules in your XSLT or program...

have fun.

David
[signature link removed]
Legend
May 12, 2008
Guarav,

If the attribute is defined in your DTD or schema, it should write out the attribute by default. Are the 8 missing attributes actually populated? Frame won't write an empty attribute, as far as I know.

Russ