PDA

View Full Version : Diff failing sometimes.



fperedo
04-19-2007, 06:08 PM
Hi!
I think DekiWiki is great! :). One of my coworkers installed it here, on Windows XP and I think it is going to be very useful for our organization...
but... while diff is working for most pages, for somewhat more complex page with two tables, I get the following error:

The exception is in Spanish, the translation would be something like: "'v' is an undeclared namespace" or "'v' is a namespace without declaration":

Error:System.Xml.XmlException: 'v' es un espacio de nombres sin declarar. L�nea 20, posici�n 14.
en System.Xml.XmlTextReaderImpl.Throw(Exception e)
en System.Xml.XmlTextReaderImpl.Throw(String res, String arg, Int32 lineNo, Int32 linePos)
en System.Xml.XmlTextReaderImpl.LookupNamespace(NodeD ata node)
en System.Xml.XmlTextReaderImpl.AttributeNamespaceLoo kup()
en System.Xml.XmlTextReaderImpl.ParseAttributes()
en System.Xml.XmlTextReaderImpl.ParseElement()
en System.Xml.XmlTextReaderImpl.ParseElementContent()
en System.Xml.XmlTextReaderImpl.Read()
en System.Xml.XmlTextReader.Read()
en Microsoft.XmlDiffPatch.XmlDiffDocument.LoadChildNo des(XmlDiffParentNode parent, XmlReader reader, Boolean bEmptyElement)
en Microsoft.XmlDiffPatch.XmlDiffDocument.LoadChildNo des(XmlDiffParentNode parent, XmlReader reader, Boolean bEmptyElement)
en Microsoft.XmlDiffPatch.XmlDiffDocument.LoadChildNo des(XmlDiffParentNode parent, XmlReader reader, Boolean bEmptyElement)
en Microsoft.XmlDiffPatch.XmlDiffDocument.LoadChildNo des(XmlDiffParentNode parent, XmlReader reader, Boolean bEmptyElement)
en Microsoft.XmlDiffPatch.XmlDiffDocument.LoadChildNo des(XmlDiffParentNode parent, XmlReader reader, Boolean bEmptyElement)
en Microsoft.XmlDiffPatch.XmlDiffDocument.LoadChildNo des(XmlDiffParentNode parent, XmlReader reader, Boolean bEmptyElement)
en Microsoft.XmlDiffPatch.XmlDiffDocument.LoadChildNo des(XmlDiffParentNode parent, XmlReader reader, Boolean bEmptyElement)
en Microsoft.XmlDiffPatch.XmlDiffDocument.Load(XmlRea der reader, XmlHash xmlHash)
en Microsoft.XmlDiffPatch.XmlDiff.Compare(XmlReader sourceReader, XmlReader changedReader, XmlWriter diffgramWriter)
en MindTouch.MKS.Program.Main(String[] args)

Any clues? :(

SteveB
04-24-2007, 01:38 AM
When you look at the source of the the page, do you see an element that is prefixed by a "v:". Something like this: <v:xyz>

fperedo
04-24-2007, 08:56 PM
Well, there are code like this everywhere :) :
<div class="O" v:shape="_x0000_s1026">Adquirido</div>

What is "v:shape" for? :confused:

I have created other complex pages... but this error appear to be "random" (I am not sure what do I have to make it "show up" :mad: ), my best guess is that the WYSWYG editor is somewhat corrupting the XHTML, because at the bottom of some pages I can read:

<!-- Tidy found serious XHTML errors: -->

But... it doesn't say what errors were found by Tidy... :confused:

Any hints?

thanks

SteveB
04-24-2007, 09:13 PM
Actually, those "<!-- Tidy found serious XHTML errors: -->" errors messages can be safely ignored.

I'm guessing these v:shape attributes are being introduced through copy/paste operations. Without the proper xmlns declaration on the XML document, these prefixes are invalid. We'll have to add code to parse the documents for these kinds or errors and fix them. Otherwise, the XML processing engine will hick up.