You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Henri Yandell <ba...@generationjava.com> on 2002/08/09 19:39:44 UTC

Xml-commons

I've some String based Xml utils that are currently split between my
personal codebase or in Jakarta Commons Util. The general nature of it all
is to make Xml handling easier for small things.

So some simple Xml semi-parsing functions that let you pull data easily
from Xml snippets without having to bash together a full on parser, and an
XmlWriter for outputting Xml nicely [see
http://www.techrepublic.com/images/ads/c005_builder.html or
http://techupdate.zdnet.fr/story/0,,t381-s2109583,00.html for french].

None of it is very high-brow, but I feel it solves small-time issues
nicely.

My questions are:

1) Is it an xml.apache.org thing or a jakarta.apache.org thing?
2) Xml-Commons or Jakarta.Commons.Util.xml
3) Where do I discuss Xml-Commons.

Thanks,

Hen


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: Xml-commons

Posted by Henri Yandell <ba...@generationjava.com>.

> The commons-dev@xml.apache.org list.

Need to get this on the website :)

> According to the charter, and clarified on the list, xml-commons is for
> common code in existing xml.apache.org projects, not a repository for
> generally useful XML code.
>
> There have been a few suggestions for an xml-tools project for generally
> useful code, which have been met with approval but no action. Would you
> like to help start one?  I have some code to contribute
> (doctypechanger.sf.net). Ordinarily I'd suggest sticking to
> Jakarta-commons, but it's getting really crowded over there, so starting
> an XML-specific Commons-equivalent makes some sense.

Yep, am interested. For the moment though I'm going to collate some code
in an xml sub-package of the Jakarta Commons Util project. Util isn't
leaving the sandbox anytime soon and it's a nice place to evolve and
display it. I'll also check other Jakarta projects, such as the xml
taglibs, and collate any util things they have too.

Hen



---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: Xml-commons

Posted by Jeff Turner <je...@apache.org>.
On Fri, Aug 09, 2002 at 01:39:44PM -0400, Henri Yandell wrote:
> I've some String based Xml utils that are currently split between my
> personal codebase or in Jakarta Commons Util. The general nature of it all
> is to make Xml handling easier for small things.
> 
> So some simple Xml semi-parsing functions that let you pull data easily
> from Xml snippets without having to bash together a full on parser, and an
> XmlWriter for outputting Xml nicely [see
> http://www.techrepublic.com/images/ads/c005_builder.html or
> http://techupdate.zdnet.fr/story/0,,t381-s2109583,00.html for french].
> 
> None of it is very high-brow, but I feel it solves small-time issues
> nicely.
> 
> My questions are:
> 
> 1) Is it an xml.apache.org thing or a jakarta.apache.org thing?
> 2) Xml-Commons or Jakarta.Commons.Util.xml
> 3) Where do I discuss Xml-Commons.

The commons-dev@xml.apache.org list.

According to the charter, and clarified on the list, xml-commons is for
common code in existing xml.apache.org projects, not a repository for
generally useful XML code.

There have been a few suggestions for an xml-tools project for generally
useful code, which have been met with approval but no action. Would you
like to help start one?  I have some code to contribute
(doctypechanger.sf.net). Ordinarily I'd suggest sticking to
Jakarta-commons, but it's getting really crowded over there, so starting
an XML-specific Commons-equivalent makes some sense.


--Jeff


> Thanks,
> 
> Hen

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: Xml-commons

Posted by Aleksander Slominski <as...@cs.indiana.edu>.
Henri Yandell wrote:

> Definitely.
>
> A guy in Texas contacted me today and might add indentation/newlines to it
> [though I also aim to add them if he lacks the time] and having comments
> and namespaces would also be pretty easy and nice.

hi,

you may want to take look on XmlSerializer in XmlPull API
(i attach below java interface - it is interface ot make possible one common
interface ot different implementation of XML infoset serialization )

XmlSerializer is designed to make working with namespaces output
as easy as possible: if you do not declare namespace prefix it will
be automatically generated for you but you can always set your
preferred prefixes by calling setPrefix(), for example (if you
wanted person to be in namespace "http://tempuri.org/"
and use prefix "p"):

   XmlSerializer xs = new XmlSerializerImpl();
   xs.setInput (writer);
   xs.setPrefix("p", "http://tempuri.org/");   //optional
   xs.startTag("http://tempuri.org/", "person");
   xs.attribute("", "name", person.getName());
   xs.attribute("", "age", person.getAge());
   xs.endTag ("http://tempuri.org/", "person");
   xs.flush();


> What's inofset?

XML infoset describes in abstract from syntax/more object oriented  way
what can be expressed in XML 1.0, see: http://www.w3.org/TR/xml-infoset/

> Anyways, aim is to figure out where to be publishing it and evolving it :)

sure - that is good idea. if you have comments on XmlSerializer please
let me know as well.

thanks,

alek


Re: Xml-commons

Posted by Henri Yandell <ba...@generationjava.com>.
Definitely.

A guy in Texas contacted me today and might add indentation/newlines to it
[though I also aim to add them if he lacks the time] and having comments
and namespaces would also be pretty easy and nice.

What's inofset?

Anyways, aim is to figure out where to be publishing it and evolving it :)

Hen

On Fri, 9 Aug 2002, Aleksander Slominski wrote:

> hi,
>
> XmlWriter is very interesting and small (!) however i think it is
> missing support for namespaces (or user has to manually generate
> correct prefixes etc.) and it seems it does not support full inofset -
> how to write comment for example?
>
> thanks,
>
> alek
>
> Henri Yandell wrote:
>
> > Apologies.
> >
> > http://builder.com.com/article.jhtml?id=u00220020318yan01.htm&page=1&vf=tt
> >
> > Konquerer and builder.com appear to have issues.
> >
> > Hen
> >
> > On Fri, 9 Aug 2002, Henri Yandell wrote:
> >
> > > I've some String based Xml utils that are currently split between my
> > > personal codebase or in Jakarta Commons Util. The general nature of it all
> > > is to make Xml handling easier for small things.
> > >
> > > So some simple Xml semi-parsing functions that let you pull data easily
> > > from Xml snippets without having to bash together a full on parser, and an
> > > XmlWriter for outputting Xml nicely [see
> > > http://www.techrepublic.com/images/ads/c005_builder.html or
> > > http://techupdate.zdnet.fr/story/0,,t381-s2109583,00.html for french].
> > >
> > > None of it is very high-brow, but I feel it solves small-time issues
> > > nicely.
> > >
> > > My questions are:
> > >
> > > 1) Is it an xml.apache.org thing or a jakarta.apache.org thing?
> > > 2) Xml-Commons or Jakarta.Commons.Util.xml
> > > 3) Where do I discuss Xml-Commons.
> > >
> > > Thanks,
> > >
> > > Hen
> > >
> > >
> > > ---------------------------------------------------------------------
> > > In case of troubles, e-mail:     webmaster@xml.apache.org
> > > To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: general-help@xml.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > In case of troubles, e-mail:     webmaster@xml.apache.org
> > To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> > For additional commands, e-mail: general-help@xml.apache.org
>


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: Xml-commons

Posted by Aleksander Slominski <as...@cs.indiana.edu>.
hi,

XmlWriter is very interesting and small (!) however i think it is missing support for namespaces
(or user has to manually generate correct prefixes etc.) and it seems it does not support
full inofset - how to write comment for example?

thanks,

alek

Henri Yandell wrote:

> Apologies.
>
> http://builder.com.com/article.jhtml?id=u00220020318yan01.htm&page=1&vf=tt
>
> Konquerer and builder.com appear to have issues.
>
> Hen
>
> On Fri, 9 Aug 2002, Henri Yandell wrote:
>
> > I've some String based Xml utils that are currently split between my
> > personal codebase or in Jakarta Commons Util. The general nature of it all
> > is to make Xml handling easier for small things.
> >
> > So some simple Xml semi-parsing functions that let you pull data easily
> > from Xml snippets without having to bash together a full on parser, and an
> > XmlWriter for outputting Xml nicely [see
> > http://www.techrepublic.com/images/ads/c005_builder.html or
> > http://techupdate.zdnet.fr/story/0,,t381-s2109583,00.html for french].
> >
> > None of it is very high-brow, but I feel it solves small-time issues
> > nicely.
> >
> > My questions are:
> >
> > 1) Is it an xml.apache.org thing or a jakarta.apache.org thing?
> > 2) Xml-Commons or Jakarta.Commons.Util.xml
> > 3) Where do I discuss Xml-Commons.
> >
> > Thanks,
> >
> > Hen
> >
> >
> > ---------------------------------------------------------------------
> > In case of troubles, e-mail:     webmaster@xml.apache.org
> > To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> > For additional commands, e-mail: general-help@xml.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org

Re: Xml-commons

Posted by Henri Yandell <ba...@generationjava.com>.
Apologies.

http://builder.com.com/article.jhtml?id=u00220020318yan01.htm&page=1&vf=tt

Konquerer and builder.com appear to have issues.

Hen

On Fri, 9 Aug 2002, Henri Yandell wrote:

> I've some String based Xml utils that are currently split between my
> personal codebase or in Jakarta Commons Util. The general nature of it all
> is to make Xml handling easier for small things.
>
> So some simple Xml semi-parsing functions that let you pull data easily
> from Xml snippets without having to bash together a full on parser, and an
> XmlWriter for outputting Xml nicely [see
> http://www.techrepublic.com/images/ads/c005_builder.html or
> http://techupdate.zdnet.fr/story/0,,t381-s2109583,00.html for french].
>
> None of it is very high-brow, but I feel it solves small-time issues
> nicely.
>
> My questions are:
>
> 1) Is it an xml.apache.org thing or a jakarta.apache.org thing?
> 2) Xml-Commons or Jakarta.Commons.Util.xml
> 3) Where do I discuss Xml-Commons.
>
> Thanks,
>
> Hen
>
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
>
>


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org