paulc
37a72e4bc1
Added copyright notices to sources and scripts missing them.
...
Updated copyright notices for 2014.
Fixed end of lines in many files.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5755 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-05 11:42:17 +00:00
andrei
1d7a803624
Fixed un-escape for hex escaped characters.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5664 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-10 14:07:56 +00:00
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
paulc
9ce3a36256
Added methods to detect UTF-8 BOM at start of strings.
...
Strip UTF-8 BOM from start of configuration, XML and Javascript files.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5393 acf43c95-373e-0410-b603-e72c3f656dc1
2013-02-07 17:10:39 +00:00
oana
ad4c417d46
Bug fix: avoid infinite loop when looking for a declaration. Bug exposed by SVN commit 5383.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5390 acf43c95-373e-0410-b603-e72c3f656dc1
2013-01-31 14:03:44 +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
33ec93996d
Fixed instruction and declaration parse. Added/changed debug.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@4693 acf43c95-373e-0410-b603-e72c3f656dc1
2011-11-11 16:03:07 +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
paulc
135da8decd
Optimized const String usage in the XML library.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@4424 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-03 12:55:03 +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
86ace5a67c
Fixed memory leak: release a parsed attribute when a duplicate is found.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@4057 acf43c95-373e-0410-b603-e72c3f656dc1
2011-01-24 10:12:37 +00:00
marian
f0b7da8e63
Fixed memory leak: release all xml element data when destroyed.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@4050 acf43c95-373e-0410-b603-e72c3f656dc1
2011-01-21 08:57:29 +00:00
marian
e648511468
Fixed memory leak: clear xml document data when destroyed.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@4049 acf43c95-373e-0410-b603-e72c3f656dc1
2011-01-20 16:10:56 +00:00
marian
852f710b73
Fixed memory leak: release extracted xml tag if invalid.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@4048 acf43c95-373e-0410-b603-e72c3f656dc1
2011-01-20 14:48:22 +00:00
marian
2476dc9112
Fixed memory leak: release data if failed to parse attribute value.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@4047 acf43c95-373e-0410-b603-e72c3f656dc1
2011-01-20 14:30:52 +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
2d2fd49921
Allocate a buffer for each child of an XmlFragment and then append them to the destination buffer (avoid expensive re-alloc/copy for elements with a large number of children).
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3814 acf43c95-373e-0410-b603-e72c3f656dc1
2010-11-15 08:38:01 +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
paulc
15904daef1
Reorder libraries so that Yate libraries and modules can be linked using --as-needed avoiding underlinking or overlinking.
...
Reported by Mandriva (bug report #206 ).
git-svn-id: http://yate.null.ro/svn/yate/trunk@3143 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-24 13:46:12 +00:00
marian
e4bf599a53
The xml parser now returns incomplete instead of invalid encoding error when the buffer contains an invalid utf8 character (it might be at buffer end).
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3129 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-17 15:22:26 +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
03d9853390
Escape element text when requested.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2978 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-03 13:21:37 +00:00
marian
adffa26bb7
Print element attributes on the same line with tag.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2950 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-17 08:28:46 +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
paulc
7f67a8c7f5
Disambiguated a pair of if ... else.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2910 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-09 19:05: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
paulc
ddcb309e01
Two more warning fixes.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2725 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-19 11:28:25 +00:00
paulc
2c03a9624d
Use the system detected CFLAGS instead of hardcoding -O2
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2673 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-01 16:06:14 +00:00
paulc
c069997056
Link the libraries using the C++ linker so it properly links against libstdc++ and compiler support.
...
Not required on ELF systems as libyate.so would pull in the required libraries but was confusing and could cause problems on other platforms.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2667 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-31 18:58:25 +00:00
paulc
14bf8a5cd3
Add configure time LDFLAGS to linker command line.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2006 acf43c95-373e-0410-b603-e72c3f656dc1
2008-06-03 10:59:16 +00:00
marian
8b6138eea2
Fixed bug: properly add element end tag when requesting un unclosed element.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1872 acf43c95-373e-0410-b603-e72c3f656dc1
2008-04-03 13:09:35 +00:00
paulc
b42a894ddc
Directory reorder #3
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1476 acf43c95-373e-0410-b603-e72c3f656dc1
2007-11-15 23:06:36 +00:00
paulc
bccee6022e
Directory reorder #1
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1474 acf43c95-373e-0410-b603-e72c3f656dc1
2007-11-15 22:08:39 +00:00