addattribute

NullPointerException in javax.swing.text.SimpleAttributeSet.addAttribute

Has anyone ever seen an exception like this (with version 1.6.0_11 of the JVM)?: ERROR: java.lang.NullPointerException: null at java.util.Hashtable.put(null:-1) at javax.swing.text.SimpleAttributeSet.addAttribute(null:-1) at javax.swing.text.SimpleAttributeSet.addAttributes(null:-1) at javax.swing.text.StyledEditorKit.cr...

How to add a progressive IDs to elements with jquery?

Hi All, Using jquery I want to add an id to a series of divs, but of course the ids need to be always different, so I thought to have a progressive number like id="1", id="2", id="3" etc. here's my markup: content <div class="box"> <p> content </p> ...

I use dom4j1.6 in java(xml), but I can't addattribute null value, What can I do?

In my source----- Element element1 = element.addElement("List"); element1.addAttribute("Number", (String)Map.get("NUMBER")); element1.addAttribute("Indicator", null); I want a result like that=> element1 Indicator=""/ I use use dom4j1.6 in java, I search the method, addattribute method => Attributes with null values are silentl...

SimpleXML addChild and addAttribute doesnt insert variables.

Hi Everyone, For some reason, my addChild and addAttribute functions only seem to work when I enter in direct strings. They don't work when I enter in a variable string that I received from a html form POST. Anyone know the reason why? $question = "What is your name?"; $entry->addChild("Question")->addAttribute("text",$question); ...