Hello Team,
i do a replacement with the replace method of the Aspose API
getAllNodesBetween(start, ende);
DocumentBuilder builder = new DocumentBuilder(doc);
for (Iterator nodes = allNodesBetweenBookmarks.iterator(); nodes.hasNext()
{
Node currentNode = nodes.next();
Node startNode = currentNode;
builder.moveTo(args.getMatchNode());
Node dstNode = doc.importNode(startNode, true, ImportFormatMode.KEEP_SOURCE_FORMATTING);
/// geht... fⁿgt eine node an
// der richtigen stelle ein
Paragraph currentPar = (Paragraph) builder.getCurrentNode().getAncestor(NodeType.PARAGRAPH);
// -----------------------
currentPar.getParentNode().insertBefore(dstNode, currentPar);
}
Now i have a problem. The source dcument contain a enumeration Number 1 to 3.
When i put it in the destination document, all enumerations are 1.
Please see attachted Documents. What do i wrong?
With best regards
hSp