sorry, I'm just starting learning FrameMaker ExtendScript, but I'm still stucking at the basics. I googled a lot, used the FM10 scripting guide, and so on but I didn't find a low-level tutorial for users like me, so I'd be glad, if you'd help me by answering some - hopefully - simple questions:
Thanks a lot
There is not a direct analogue to the document.getElementById function because FrameMaker's document/object model is so fundamentally different than the HTML DOM. Depending on that you are trying to do, you would likely end up using doc.Find() for the relevant attribute/value pair. In a few circumstances, doc.getUniqueObject() might also be appropriate.
I have very limited experience moving XML into and out of Frame, so I'm feeling a bit speculative about your second question, but the first thing I would try would be myGraphic.FrameParent.Element.
For an introduction to many basic concepts, including the FM document model, I highly recommend Debra Herman's blog, Extending Framemaker.
Adobe FrameMaker Engineering