Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

output XML from Mac::PropertyList

Status
Not open for further replies.

jez

Programmer
Apr 24, 2001
370
VN
Hi everyone,

I am using this module to access Apple's Plist data which is a standard way for apple software to store prefs and user data.

It is all good, but makes no mention of how to output the XML again once you have done something with it.

Maybe i am being a little dim, but i don't see how i can make a file with a whole lot of stuff at the top which will be default such as the XML declaration and root elements, then dropping in the result of the Mac::propertyList stuff.

Any suggestions of thoughts would be gratefully recieved.

Jez
 
you need to either look for or write an export function, and we'll all go "Some fella innee", lot of mutual back clapping ... 'n' all that

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Thanks for the response, i think you are right.

I have now started to use XML::Writer to output the xml.
It is possible to create raw XML with MAC::propertyList and then dump it in with the rest of my output, however i have found that the Mac::propertyList is more useful just for parsing the Mac::propertyList file, rather than to write it again.


Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top