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

Feature Request: An XML parser that supports writing modified XML.

LEGEND ,
Feb 24, 2010 Feb 24, 2010

LrXml allows one to read an xml document, or build one for serialization from scratch, but does not allow one to read one, modifiy it, then serialize it. I would have written my own, but the LrXml bug that does not reveal the namespace for any nodes other than the root (on Windows 7/64-bit anyway) means I can't leverage the existing parser in LrXml.

I request a read/write xml parser in the sdk. for example:

LrXml.parseToLuaTable( xml-string ) -- returns table of nested tables...

-- Manipulate lua table data using ordinary lua, or LrXml methods like: LrXml.childrenTables( root-node-table ) - programmers choice.

LrXml.serializeLuaTableToXml( lua-xml-table ) -- returns string.

This would help me build my line of XMP-based plugins, and would also be valuable for other purposes.

Rob

TOPICS
SDK
740
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
Adobe Employee ,
Feb 25, 2010 Feb 25, 2010

We probably won't be able to directly support the read/modify/write workflow, but the namespace bug has been reported and should be fixed in LR3.

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
LEGEND ,
Feb 25, 2010 Feb 25, 2010
LATEST

Thanks escouten, - fixing the namespace problem will help.

Rob

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