Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to capture element/attribute

New Here ,
May 09, 2008 May 09, 2008
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.
TOPICS
Structured
498
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
May 12, 2008 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 19, 2008 Jun 19, 2008
LATEST
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]
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines