Commit Graph

24 Commits

Author SHA1 Message Date
oana 6086186f6e Added setText() and setAttributes() functions to XmlElement class.
setText() allows replacing the text of an XmlElement.
setAttributes() allows setting multiple attributes from a NamedList.



git-svn-id: http://yate.null.ro/svn/yate/trunk@5650 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-12 08:40:58 +00:00
paulc bc65721534 Constified XmlElement::getText()
git-svn-id: http://yate.null.ro/svn/yate/trunk@5625 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-14 13:33:43 +00:00
paulc cf5d0fd71a Changed license terms in each source file to reference an external file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5609 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 13:38:10 +00:00
marian 45304e7301 Added method used to change an XMLElement's unprefixed tag.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5428 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-27 15:31:34 +00:00
andrei 658acd87c3 Do not report error if empty text children or comments are found after the document root element is finished.
Added method to get the first child of an XmlElement.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5383 acf43c95-373e-0410-b603-e72c3f656dc1
2013-01-25 14:42:33 +00:00
marian 3139664df6 Added method used to pop the first XmlElement from a fragment. The element is extracted only if completed.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5342 acf43c95-373e-0410-b603-e72c3f656dc1
2012-11-22 13:53:51 +00:00
marian dd477e210c Added helper method used to append a child and release the object if append fails.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5341 acf43c95-373e-0410-b603-e72c3f656dc1
2012-11-22 13:49:36 +00:00
marian 8310e084c9 Added helper method used to retrieve the text of an element's child.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5340 acf43c95-373e-0410-b603-e72c3f656dc1
2012-11-22 13:41:31 +00:00
marian 1281103f3f Added constructor used to build an XmlElement with a text child.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5339 acf43c95-373e-0410-b603-e72c3f656dc1
2012-11-22 13:28:32 +00:00
marian 9efa390989 Fixed bug: always produce the same xml text regardless the way data is pushed into sax parser (sequentially or full). Added method to finalize incomplete xml text after pushing all data to sax parser. Added debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4798 acf43c95-373e-0410-b603-e72c3f656dc1
2012-01-06 10:05:05 +00:00
paulc df818f4d26 Added helper method to check if an XmlParent has any children.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4765 acf43c95-373e-0410-b603-e72c3f656dc1
2011-12-15 15:55:59 +00:00
marian 15536185d5 Fixed bug: compare the unprefixed xml element name when searching for one without indicating a namespace instead of prefixed name. Optionally compare the prefixed name if requested.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4473 acf43c95-373e-0410-b603-e72c3f656dc1
2011-07-06 10:47:23 +00:00
marian fba5bf3042 Added conversion methods between NamedList parameters and XmlElement objects.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4115 acf43c95-373e-0410-b603-e72c3f656dc1
2011-02-18 16:04:07 +00:00
marian 89c240f7ac Fixed memory leak: release the fragment owned by a DOM parser. Release the temporary parser used when loading an xml document from a file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4046 acf43c95-373e-0410-b603-e72c3f656dc1
2011-01-20 14:10:13 +00:00
marian e51b81c831 Made some xml parser's methods static (they are not related to parser state). Added method used to check if a string is a valid tag name.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3809 acf43c95-373e-0410-b603-e72c3f656dc1
2010-11-12 15:59:19 +00:00
paulc 8e4c21908d Fixed a Doxygen commment.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3272 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-03 12:29:52 +00:00
marian bd88aedab9 Added method used to copy an xml element's attributes to another list using a prefix.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3254 acf43c95-373e-0410-b603-e72c3f656dc1
2010-04-29 13:29:38 +00:00
marian 71aa51d5db Don't indent element text when it's the only child. Fixed documentation.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3100 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-02 09:27:10 +00:00
marian d3a451fcae Pop only completed child elements.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2924 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-11 13:00:09 +00:00
paulc 413102c4c1 Made Yate 3 build in Visual Studio, fixed some bugs discovered by the VC++ compiler.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2923 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-10 18:44:44 +00:00
marian 422021c9d3 Removed duplicate namespace value check (incorrect).
git-svn-id: http://yate.null.ro/svn/yate/trunk@2904 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-09 13:12:40 +00:00
paulc 1369dc22f2 Added a virtual destructor to the abstract class XmlParent.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2901 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-07 11:51:49 +00:00
paulc b43bd79170 Fixed some parameter names and doxygen tags.
Added ignore list to yjabber directory.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2887 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-03 11:37:17 +00:00
marian d6966c6347 Implemented jabber server. Changed jingle channel to support the new jabber library. Replaced tinyxml with yate own XML library. Added openssl support for server. Work in progress in jabber client support.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2882 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-02 16:05:39 +00:00