[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

FDK:Duplicating an element hierarchy



Hello Framers,

I have an element structure in one document that I am trying to duplicate in
another document. I do not want to use copy/paste via the clipboard. Here is
an example of my source structure.

<Description><Emphasis>Philips</Emphasis> motor is obsolete. Use
<Emphasis>GE</Emphasis> motor at
<Fraction><Numerator>1</Numerator><Slash></Slash><Denominator>2</Denominator
></Fraction> speed.</Description>

I want my target structure to be exactly the same, except for the root
element.

<DescIndex><Emphasis>Philips</Emphasis> motor is obsolete. Use
<Emphasis>GE</Emphasis> motor at
<Fraction><Numerator>1</Numerator><Slash></Slash><Denominator>2</Denominator
></Fraction> speed.</DescIndex>

I can traverse the source elements and successfully write everything to the
Console. But I am having trouble writing the new structure and getting the
children and siblings in the correct places. I am using FrameScript, but if
I could see a snippet of FDK code, it may help me to understand the logic.
Thanks in advance.

Rick Quatro
Carmen Publishing
585-659-8267
rick@frameexpert.com
http://www.frameexpert.com
Author of FrameScript: A Crash Course



** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **