XML validation

3 messages Options
Embed this post
Permalink
phretor

XML validation

Reply Threaded More More options
Print post
Permalink
Hello,
  have you ever experienced an XML validation error? I am running
StatSVN on Media Wiki's repository. More precisely,

  $ svn log -v --xml http://svn.wikimedia.org/svnroot/mediawiki > svn.log
  $ rxp -V svn.log #lots of output, no validation errors
  $ java -jar ../statsvn/dist/statsvn.jar -cache-dir ./cache/
-output-dir ./stat/ -title MediaWiki -tags ".*" -tags-dir
./mediawiki/tags/ ./svn.log ./mediawiki/
  Mar 19, 2009 10:06:12 AM net.sf.statsvn.util.JavaUtilTaskLogger info
  INFO: StatSVN - SVN statistics generation

  Parsing SVN log './svn.log' exclude pattern 'null'
  Logfile parsing failed.
  svn log: svn info: XML document structures must start and end within
the same entity.

  Any suggestion? Debug and verbose flags didn't help at all.

--Federico

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
Jason Kealey-2

Re: XML validation

Reply Threaded More More options
Print post
Permalink
See here:  http://blog.lavablast.com/post/2008/03/Upcoming-StatCVSStatSVN-release.aspx

Possible reasons:
1) svn is not generating valid xml - improbable but worth a look
2) the log file doesn't have the right encoding (as per the comments in the blog post above)
3) your xml parser is not the default one used by Java and it has problems (there are lots of issues related to this that can be found on our mailing list)

Thanks,
---
Jason Kealey - [hidden email]
LavaBlast Franchise Software - http://www.lavablast.com
Simplifying day-to-day franchise operations


On Thu, Mar 19, 2009 at 1:18 PM, Federico Maggi <[hidden email]> wrote:
Hello,
 have you ever experienced an XML validation error? I am running
StatSVN on Media Wiki's repository. More precisely,

 $ svn log -v --xml http://svn.wikimedia.org/svnroot/mediawiki > svn.log
 $ rxp -V svn.log #lots of output, no validation errors
 $ java -jar ../statsvn/dist/statsvn.jar -cache-dir ./cache/
-output-dir ./stat/ -title MediaWiki -tags ".*" -tags-dir
./mediawiki/tags/ ./svn.log ./mediawiki/
 Mar 19, 2009 10:06:12 AM net.sf.statsvn.util.JavaUtilTaskLogger info
 INFO: StatSVN - SVN statistics generation

 Parsing SVN log './svn.log' exclude pattern 'null'
 Logfile parsing failed.
 svn log: svn info: XML document structures must start and end within
the same entity.

 Any suggestion? Debug and verbose flags didn't help at all.

--Federico

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
phretor

Re: XML validation

Reply Threaded More More options
Print post
Permalink
On Thu, Mar 19, 2009 at 13:00, Jason Kealey <[hidden email]> wrote:
> See here:
> http://blog.lavablast.com/post/2008/03/Upcoming-StatCVSStatSVN-release.aspx

Note that I am using the trunk version.

> Possible reasons:
> 1) svn is not generating valid xml - improbable but worth a look.

That's what I am saying, it's almost impossible. Also, a quick scan
revealed that the svn.log XML file was valid and well-formed.

> 2) the log file doesn't have the right encoding (as per the comments in the
> blog post above)

In that case, the error would be different than what I reported. In my
case, the parser aborted *exactly* because it didn't find the
appropriate closing tag. I'll take a look at this
http://blechie.com/wtilton/archive/2007/10/15/309.aspx (just found :)

Cheers,

-- Federico

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users