[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Looking for good xhtml explorer

  • From: Philip Fearon <pgfearo@googlemail.com>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Wed, 28 Nov 2012 15:34:38 +0000

Re:  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:


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@y...>; "xml-dev@l..." <xml-dev@l...>
Sent: Wednesday, 28 November 2012 12:24 AM
Subject: Re: 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:

http://www.qutoric.com/xslt/analyser/xpathtool.html

The open source code for this is at:

https://github.com/pgfearo/pathenq

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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.