Is it posible to create a XML node with prefix in Javascript? -
im trying create xml file namespace or prefix this.
<bpmndi:bpmndiagram id="bpmndiagram_1"> <bpmndi:bpmnplane id="bpmnplane_1" bpmnelement="process_1"> <bpmndi:bpmnshape id="_bpmnshape_startevent_2" bpmnelement="startevent_1"> <dc:bounds x="173" y="102" width="36" height="36" /> </bpmndi:bpmnshape> <bpmndi:bpmnshape id="task_1_di" bpmnelement="task_1"> <dc:bounds x="437" y="107" width="100" height="80" /> </bpmndi:bpmnshape> <bpmndi:bpmnedge id="sequenceflow_1_di" bpmnelement="sequenceflow_1"> <di:waypoint xsi:type="dc:point" x="209" y="120" /> <di:waypoint xsi:type="dc:point" x="323" y="120" /> <di:waypoint xsi:type="dc:point" x="323" y="147" /> <di:waypoint xsi:type="dc:point" x="437" y="147" /> <bpmndi:bpmnlabel> <dc:bounds x="278" y="123.5" width="90" height="20" /> </bpmndi:bpmnlabel> </bpmndi:bpmnedge> </bpmndi:bpmnplane> </bpmndi:bpmndiagram>
i tried document.createelement("bpmn"); can't set prefix.
thanks!!
you use:
nodeobject.prefix=prefix
that return:
nodeobject.prefix
Comments
Post a Comment