Skip to content
Advertisement

Tag: dom

Edit an xml file element using dom

Please tell me what I’m doing wrong. I work with javafx and by clicking on the button, when the listview element is selected, I pass an object of the Country class to the editing method, but the xml file is not being edited, what is the problem? I attached an xml file, a broken edit function and a working delete

XMLConstants.FEATURE_SECURE_PROCESSING cannot be disabled

In the following method I defined a DocumentBuilderFactory with the XMLConstant FEATURE_SECURE_PROCESSING as false. However, when I test the value of this property, it is ‘true’ after the DocumentBuilderFactory is returned. I read the source documentation, and it states: It is possible for an {@code TransformerFactory} to expose a feature value but be unable to change its state. I am

How to find Self-Closing Tags with org.w3c.dom

Does anybody know, how to find self closing tags of the XML document? I am able to get all the elements of specific type, but I am unable to find elements, that are self closing and also, I need to find elements, with no attributes. My XML file has two types of myTag tags: Pair tags, that contains another nested

importNode throws org.w3c.dom.DOMException: NOT_SUPPORTED_ERR

I am trying to merge two XML documents both with standard Oracle JDK 7 and also with Saxon HE but I keep getting an: On the line with the importNode below (same thing happens with adoptNode BTW): I’ve tried both with Saxon-HE-9.4.jar on my classpath or not, but I still get the same error. update Based on comments I received,

Comparing XML in java

Here are two XMLs , I am trying to compare and put the respective data in excel sheet. I have a multidimensional array called provisions. AND Now this XML data is for 2 plans and my provisions array contains provisions == [[Plan Features,,][Deductible,,][Individual,,]…..] This is what I have done The problem happens when that extra node of Family Out-of-network comes

JDI Thread Evaluations has encountered a problem

I’m running Eclipse for Java. I created a DOM version of an XML file. Now I want to change an attribute of an element in the file. I called a method that called a method in the class that controls the DOM, and I got a dialog box saying “JDI Thread Evaluations has encountered a problem. Exception processing async thread

Advertisement