Chris, It's fixed in build #603. It's present only if you have no root element in your document.
Best regards, Mike Aizatsky. ------------------------------ IntelliJ Software, "Develop with pleasure!" http://www.intellij.com > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On > Behalf Of Bartley, Chris > Sent: Friday, February 08, 2002 12:05 AM > To: '[EMAIL PROTECTED]' > Subject: [Eap-list] RE: #602: Validation of XML (specifically XHTML) > > Ok, I may have found the answer to my own question, but I can't get it to > work. I registered the URI and DTD in the External Resources area of the > IDE Options like this: > > URI: > http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1- > transitional.dtd > > Location: > C:\idea\config\j2ee\xhtml1-transitional.dtd > > But, when i try to validate my document, i get an "Internal Error Occured" > message window and the following stack trace appears in the console: > > [ 15266] ERROR - Xml - > java.lang.NullPointerException > at > com.intellij.xml.actions.ValidateXmlAction.a(ValidateXmlAction.java:77) > at > com.intellij.xml.actions.ValidateXmlAction.a(ValidateXmlAction.java:44) > at com.intellij.xml.actions.a.run(a.java) > at com.intellij.psi.impl.n.run(n.java:5) > at > com.intellij.vfs.VirtualFileManager.a(VirtualFileManager.java:24) > at com.intellij.psi.impl.v.b(v.java:122) > at com.intellij.psi.impl.v.a(v.java:101) > at > com.intellij.xml.actions.ValidateXmlAction.actionPerformed(ValidateXmlAc ti > on > .java:4) > at com.intellij.jd.actions.j.run(j.java:2) > at > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:337) > at > java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea d. > ja > va:131) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread. ja > va > :98) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:85) > > > Thanks, > > chris > ======================================================================== == > > -----Original Message----- > > From: Bartley, Chris > > Sent: Thursday, February 07, 2002 2:29 PM > > To: '[EMAIL PROTECTED]' > > Subject: #602: Validation of XML (specifically XHTML) > > > > > > First, are there plans to support XHTML (validation, > > completion, etc.)? Files that have one of the recognized > > HTML file type extensions (.html, .htm, etc) would need to be > > recognized as XML if it begins with an XML-ish prologue. > > > > In the meantime, i thought i'd give it a try by trying to > > "fool" IDEA by naming my html file with a ".xml" extension, > > say "index.xml". I then started out with the standard prologue: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > > Transitional//EN" > > "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-tran > > sitional.dtd"> > > > > IDEA is apparently not fetching the DTD from w3.org, so i > > downloaded it myself hoping that if i put it in > > [idea_home]/config/j2ee that validation and completion would > > magically work. They don't. > > > > So, my question is, how do we go about getting IDEA to > > recognize and use a DTD? Do we have to have a local copy of > > it, and, if so, where should it go? > > > > Thanks. > > > > chris > > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
