Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thanks escouten, - fixing the namespace problem will help.
Rob
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more