Library XML2HTML?

alfcen

Well-Known Member
Licensed User
Longtime User
Hi Erel,

I have put together a couple of libraries and would like to convert the XML's to HTML (as in your fine help viewer). Sure, it would not be too much trouble to write a converter, say in B4PPC, B4A or VB6, but if there is already such a tool out there, it would save some time.

Sorry, if I have overlooked directions in the forum.
 

alfcen

Well-Known Member
Licensed User
Longtime User
There is something I always wanted to write you: your support is too fast and too accurate.
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
Watch out...

My xml2bb script has an unfixed bug.
It doesn't properly handle events where an object or parameter must be returned from the Sub that handles the event.

An example event that the script will fail on:

MyEvent As Int.

I manually edit the script output if an error occurs.
One day I will have time and energy to fix it properly.

Martin.

Sent from my GT-I9300 using Tapatalk 2
 
Upvote 0

alfcen

Well-Known Member
Licensed User
Longtime User
Thanks very much Martin,

In spite of open fixes, it is an excellent, promising start.

I decided to knit my own for offline use, unless Erel will build this in his Simple Library Compiler ;)

Cheers
Robert
 
Upvote 0

alfcen

Well-Known Member
Licensed User
Longtime User
Hey, I was just kidding.
No need to do that for me, only in case of wide demand.
 
Upvote 0

alfcen

Well-Known Member
Licensed User
Longtime User
@Martin

Perhaps this is nothing, perhaps something you would like to check.

The attached XML (just rename *.zip as *.xml) has been generated without error or warning, yet the reference generator throws an error:

"An error occurred while trying generate the HTML: String could not be parsed as XML."

Sure your source will show about where parsing failed.

By the way, the HTML output looks a bit better with the following modification in the CSS script:

B4X:
ul li{               
     background-color:#fff;            
     border:1px solid #999;  /*lighter border color*/            
     margin-top: -1px;        /*avoids double lines*/
     padding:5px;
}

Cheers
 

Attachments

  • AstroAssist.zip
    54.2 KB · Views: 341
Last edited:
Upvote 0

alfcen

Well-Known Member
Licensed User
Longtime User
@Martin

Command back, I found a hidden Japanese character in the XML which was the cause of the error.
 
Upvote 0
Top