XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Looking for good xhtml explorer

The problem is that this is not well-formed XML (as it happens, its not valid HTML either).

Some browsers (like Chrome which I'm testing on now) will still create an XML DOM,
but insert a 'parseerror' element into the XML DOM. Because no exception is thrown,
PathEnq's XML text-rendering component still attempts to parse the source as XML with
it's own 'nieve' parser - and fails leaving an unhelpful 'stackoverflow' error message.

To see the full error report in PathEnq, you can disable the text-rendering component by
 toggling the 'Hide XML source' option on the options dialog to 'On' and then reloading
the 'XML'. In Chrome, I then get the following error reported in the PathEnq console for
the URL provided: 

   This page contains the following errors:error on line 196 at column 184: EntityRef: expecting ';'
   Below is a rendering of the page up to the first error...<snip>

I will add advice on this in the 'trouble-shooting' part of the documentation, but the real issue
here is that PathEnq is not designed to be an XML Editor, so it's own parser does not attempt to
show accurately where XML errors are - it relies on the browser's parser.

As this forum is not for specific products, for any further support issues, please contact me at:

support@qutoric.com

Thanks

Phil


On Wed, Nov 28, 2012 at 12:43 PM, Jack Bush <netbeansfan@yahoo.com.au> wrote:
Thanks Philip for your suggestion on trying out your online XPath 2.0 Editor, which I have tried openning up http://www.domain.com.au/Property/For-Sale/House/NSW/Auburn/?adid=2010111460 (XHTML) file without success. Should this file ends in xhtml or just htm?
 
 
There is either insufficient instruction to know how to operate this editor, or that it simply failed possibly due not well-formed document.
 
 
 
 
 
 
 
 
I have used Firebug & FirePath on the same document which gave the correct XPath location of the target element below:
 
 
 
 
 
 
 
 
 
     /html/body/form/div[2]/div[4]/div[1]/div/div/div[1]/a
 
 
 
 
 
 
 
 
Yet, my Selenium Webdriver XPath has thrown the following exception:
 
  
    Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"/html/body/form/div[2]/div[4]/div[1]/div/div/div[1]/a"}
 
 
 
 
 
 
Apologies for referring to another product but hoping to get advice on how to debug this issue using a working XML / XHTML debugger.
 
 
 
 
 
 
 
 
Many thanks in advance,
 
 
 
 
 
 
 
Jack
 

From: Philip Fearon <pgfearo@googlemail.com>
To: Jack Bush <netbeansfan@yahoo.com.au>; "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
Sent: Wednesday, 28 November 2012 12:24 AM
Subject: Re: [xml-dev] Looking for good xhtml explorer

This may help. There's a new online XPath 2.0 Editor / XML-Explorer called PathEnq that I've recently developed.

PathEnq can handle XML/XHTML or well-formed HTML files (i.e. it can cope with the HTML5 prologue).

The tool is at:


The open source code for this is at:


PathEnq exploits a Saxon-CE XSLT 2.0 processor running in the browser.

Phil Fearon
Qutoric Limited


On Tue, Nov 27, 2012 at 1:02 PM, Jack Bush <netbeansfan@yahoo.com.au> wrote:
Dear XML Specialists,
 
I need to debug some xhtml document but could not find a decent working free xhtml explorer around. The xmlassert-full.jar downloaded from http://sourceforge.net/projects/xpe/files%2Fxmlassert/
could not be run with the following error:
 
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_03
OS=Windows_NT
Path=C:\Program Files\Java\jdk1.7.0_03\bin;...
 
C:\>java -jar xmlassert-full.jar
no main manifest attribute, in xmlassert-full.jar
 
On the other hand, xpathexplorer0.1.3.zip from http://www.antepedia.com/detail/p/282834.html consisted of source code and require further instruction to compile it properly.
 
These XHTML files have been saved from Firefox as HTML files instead.
 
I am running Java 7.x, Netbeans 7.2 on Windows XP / 7 platforms.
 
Your assistance woudl be much appreciated.
Thanks in advance,
Jack






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS