[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Faster saving - new data
From:       Thomas Zander <zander () kde ! org>
Date:       2004-04-16 17:27:18
Message-ID: 200404161927.23160.zander () kde ! org
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 16 April 2004 19:14, David Faure wrote:
> > writer.beginTag ("xs:paragraph"),
> >
> > but I don't really like this idea.
>
> Why? The current code for reading OASIS xml works just like that
> koOasisStyles.cc:    if ( tagName == "style:style"
> koOasisStyles.cc:    } else if ( tagName == "style:default-style" ) {
> etc.
>
> What's wrong with startElement("style:default-style")?

With writing, I think its absolutely OK.

Your example for reading got me thinking though...  My XML (wrt namspaces) 
is a little rusty, but won't this break if an xml writer chooses to not 
write "style:style" but instead uses the xmlns attribute?
Since
<foo:A xmlns:foo="http://www.foo.org/">
     <foo:B>abcd</foo:B>
</foo:A>

and

<A xmlns="http://www.foo.org/">
     <B>abcd<B>
</A>

are the same, your reading of "foo:B" fails in the second attempt, even 
while it actually is the same thing...


- -- 
Thomas Zander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgBd5CojCW6H2z/QRAjTQAKCp4TTXGYwAqfW0X+x8AzWsToyDeQCfaiBa
IlXbhYP8O+VrVu+lchyxsx8=
=eF5l
-----END PGP SIGNATURE-----
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic