Brew html | developer.brewmp.com Brew html | developer.brewmp.com

Developer

Brew html

Forums:

I have heard that BREW has API's to parse HTML. Is there any documentation on these APIs???

Too bad they dont have anything to parse XML.

XML related APIs were there in the BREW 2.1.3
Can anybody throw some light why these APIs deleted in BREW 3.x

XML related APIs were there in the BREW 2.1.3
Can anybody throw some light why these APIs deleted in BREW 3.x

brew_on wrote:I have heard that BREW has API's to parse HTML. Is there any documentation on these APIs???
Too bad they dont have anything to parse XML.
you can use IHTMLViewer interface...
Quote:IHtmlViewer
The IHtmlViewer interface allows the application to control an HTML viewer object. BREW provides an HTML viewer that supports a subset of HTML version 3.2. The viewer is not an application, but an object to be invoked by a host application. It processes an HTML document, displays its visual representation on the screen, and allows a user to interact with the document: scrolling, taking links, and entering data into form fields.
The HTML viewer does not involve itself with network access in any way. User actions that follow a link or submit a form results in notifications being sent to the host application.
The HTML viewer in the current version of BREW has been designed to enable developers to add a degree of flexibility to application interfaces and to simplify application development. The feature set is focused on enabling flexible integration with applications. Its HTML formatting features and its ability to deal with malformed content are limited. HTML presented to the viewer should be properly constructed, with start and end tags for nonempty elements and no mismatched end tags. As a result, HTML that is tested with the particular application is advised, and it is not intended to support for arbitrary content (as obtained from various web sites).
Notable HTML features supported include:
Hypertext links
Simple HTML FORM support: text input, lists, submit buttons, check boxes, and radio buttons
inline images or plug-ins
Horizontal alignments: left, center, right
Bold text (displayed using the AEE_FONT_BOLD font)
Large text (displayed using the AEE_FONT_LARGE font)
Text colors
Notable HTML features that are not supported in the current version of BREW include:
Java applets
FRAMESET
Scripting
Background colors
Cascading Style Sheets
Unicode character references
The HTML viewer can be created using the AEECLSID_HTML ClassID.

brew_on wrote:I have heard that BREW has API's to parse HTML. Is there any documentation on these APIs???
Too bad they dont have anything to parse XML.
you can use IHTMLViewer interface...
Quote:IHtmlViewer
The IHtmlViewer interface allows the application to control an HTML viewer object. BREW provides an HTML viewer that supports a subset of HTML version 3.2. The viewer is not an application, but an object to be invoked by a host application. It processes an HTML document, displays its visual representation on the screen, and allows a user to interact with the document: scrolling, taking links, and entering data into form fields.
The HTML viewer does not involve itself with network access in any way. User actions that follow a link or submit a form results in notifications being sent to the host application.
The HTML viewer in the current version of BREW has been designed to enable developers to add a degree of flexibility to application interfaces and to simplify application development. The feature set is focused on enabling flexible integration with applications. Its HTML formatting features and its ability to deal with malformed content are limited. HTML presented to the viewer should be properly constructed, with start and end tags for nonempty elements and no mismatched end tags. As a result, HTML that is tested with the particular application is advised, and it is not intended to support for arbitrary content (as obtained from various web sites).
Notable HTML features supported include:
Hypertext links
Simple HTML FORM support: text input, lists, submit buttons, check boxes, and radio buttons
inline images or plug-ins
Horizontal alignments: left, center, right
Bold text (displayed using the AEE_FONT_BOLD font)
Large text (displayed using the AEE_FONT_LARGE font)
Text colors
Notable HTML features that are not supported in the current version of BREW include:
Java applets
FRAMESET
Scripting
Background colors
Cascading Style Sheets
Unicode character references
The HTML viewer can be created using the AEECLSID_HTML ClassID.

"XML related APIs were there in the BREW 2.1.3
Can anybody throw some light why these APIs deleted in BREW 3.x"
The xml api's were never avialable on any device only the reference was made in the documentation, there is a thrid party xml parser avialable on extranet, but this parser is not free

"XML related APIs were there in the BREW 2.1.3
Can anybody throw some light why these APIs deleted in BREW 3.x"
The xml api's were never avialable on any device only the reference was made in the documentation, there is a thrid party xml parser avialable on extranet, but this parser is not free