You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2005/09/26 06:06:02 UTC
svn commit: r291540 - in /webservices/axis2/trunk/c/modules: ./ core/
core/context/ core/context/src/ core/context/test/ core/description/
core/description/src/ core/description/test/ xml/ xml/om/ xml/om/src/
xml/om/test/ xml/soap/ xml/soap/src/ xml/so...
Author: damitha
Date: Sun Sep 25 21:05:17 2005
New Revision: 291540
URL: http://svn.apache.org/viewcvs?rev=291540&view=rev
Log:
Initial folder structure and initial implementation OM implementation
Added:
webservices/axis2/trunk/c/modules/
webservices/axis2/trunk/c/modules/core/
webservices/axis2/trunk/c/modules/core/context/
webservices/axis2/trunk/c/modules/core/context/maven.xml
webservices/axis2/trunk/c/modules/core/context/project.properties.linux
webservices/axis2/trunk/c/modules/core/context/project.properties.win.gcc
webservices/axis2/trunk/c/modules/core/context/project.properties.win.msvc
webservices/axis2/trunk/c/modules/core/context/project.xml
webservices/axis2/trunk/c/modules/core/context/src/
webservices/axis2/trunk/c/modules/core/context/test/
webservices/axis2/trunk/c/modules/core/description/
webservices/axis2/trunk/c/modules/core/description/maven.xml
webservices/axis2/trunk/c/modules/core/description/project.properties.linux
webservices/axis2/trunk/c/modules/core/description/project.properties.win.gcc
webservices/axis2/trunk/c/modules/core/description/project.properties.win.msvc
webservices/axis2/trunk/c/modules/core/description/project.xml
webservices/axis2/trunk/c/modules/core/description/src/
webservices/axis2/trunk/c/modules/core/description/src/description.h
webservices/axis2/trunk/c/modules/core/description/test/
webservices/axis2/trunk/c/modules/core/maven.xml
webservices/axis2/trunk/c/modules/core/project.xml
webservices/axis2/trunk/c/modules/xml/
webservices/axis2/trunk/c/modules/xml/maven.xml
webservices/axis2/trunk/c/modules/xml/om/
webservices/axis2/trunk/c/modules/xml/om/maven.xml
webservices/axis2/trunk/c/modules/xml/om/project.properties.linux
webservices/axis2/trunk/c/modules/xml/om/project.properties.win.gcc
webservices/axis2/trunk/c/modules/xml/om/project.properties.win.msvc
webservices/axis2/trunk/c/modules/xml/om/project.xml
webservices/axis2/trunk/c/modules/xml/om/src/
webservices/axis2/trunk/c/modules/xml/om/src/node.c
webservices/axis2/trunk/c/modules/xml/om/src/node.h
webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.c
webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.h
webservices/axis2/trunk/c/modules/xml/om/src/om_comment.c
webservices/axis2/trunk/c/modules/xml/om/src/om_comment.h
webservices/axis2/trunk/c/modules/xml/om/src/om_container.c
webservices/axis2/trunk/c/modules/xml/om/src/om_container.h
webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.c
webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.h
webservices/axis2/trunk/c/modules/xml/om/src/om_document.c
webservices/axis2/trunk/c/modules/xml/om/src/om_document.h
webservices/axis2/trunk/c/modules/xml/om/src/om_element.c
webservices/axis2/trunk/c/modules/xml/om/src/om_element.h
webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.c
webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.h
webservices/axis2/trunk/c/modules/xml/om/src/om_pi.c
webservices/axis2/trunk/c/modules/xml/om/src/om_pi.h
webservices/axis2/trunk/c/modules/xml/om/src/om_text.c
webservices/axis2/trunk/c/modules/xml/om/src/om_text.h
webservices/axis2/trunk/c/modules/xml/om/src/qname.c
webservices/axis2/trunk/c/modules/xml/om/src/qname.h
webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.c
webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.h
webservices/axis2/trunk/c/modules/xml/om/test/
webservices/axis2/trunk/c/modules/xml/om/test/om_test.c
webservices/axis2/trunk/c/modules/xml/project.xml
webservices/axis2/trunk/c/modules/xml/soap/
webservices/axis2/trunk/c/modules/xml/soap/maven.xml
webservices/axis2/trunk/c/modules/xml/soap/project.properties.linux
webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.gcc
webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.msvc
webservices/axis2/trunk/c/modules/xml/soap/project.xml
webservices/axis2/trunk/c/modules/xml/soap/src/
webservices/axis2/trunk/c/modules/xml/soap/test/
Added: webservices/axis2/trunk/c/modules/core/context/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/maven.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/maven.xml (added)
+++ webservices/axis2/trunk/c/modules/core/context/maven.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,29 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project default="all" xmlns:m="jelly:maven">
+
+ <goal name="build-sub-module">
+ <attainGoal name="nar:compile" />
+ </goal>
+ <goal name="compile-tests">
+ <attainGoal name="nar:compile-tests" />
+ </goal>
+ <goal name="all" prereqs="build-sub-module,compile-tests" />
+
+</project>
Added: webservices/axis2/trunk/c/modules/core/context/project.properties.linux
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/project.properties.linux?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/project.properties.linux (added)
+++ webservices/axis2/trunk/c/modules/core/context/project.properties.linux Sun Sep 25 21:05:17 2005
@@ -0,0 +1,26 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.arch=i386
+freehep.nar.os=Linux
+freehep.nar.c.compiler=gcc
+freehep.nar.linker=gcc
+freehep.nar.compile.includepath=src /home/damitha/programs/cutest/include/
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+#freehep.nar.tests=context_test
+freehep.nar.linker.test.arg.end=-L/home/damitha/programs/cutest/lib -lcutest -Ltarget/nar/lib/i386-Linux-g++ -laxis2c-core-context-nar-0.0
Added: webservices/axis2/trunk/c/modules/core/context/project.properties.win.gcc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/project.properties.win.gcc?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/project.properties.win.gcc (added)
+++ webservices/axis2/trunk/c/modules/core/context/project.properties.win.gcc Sun Sep 25 21:05:17 2005
@@ -0,0 +1,26 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.arch=i386
+freehep.nar.os=win32
+i386.win32.freehep.nar.c.compiler=gcc
+freehep.nar.linker=gcc
+freehep.nar.compile.includepath=src E:\\software\\cutest\\include
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+freehep.nar.tests=context_test
+freehep.nar.linker.test.arg.end=-L E:\\software\\cutest\\lib -lcutest -L target\nar\lib\i386-win32 -laxis2c-core-context-nar-0.0
Added: webservices/axis2/trunk/c/modules/core/context/project.properties.win.msvc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/project.properties.win.msvc?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/project.properties.win.msvc (added)
+++ webservices/axis2/trunk/c/modules/core/context/project.properties.win.msvc Sun Sep 25 21:05:17 2005
@@ -0,0 +1,24 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.compile.includepath=src E:\\software\\cutest\\include
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+freehep.nar.tests=context_test
+freehep.nar.linker.test.arg.start=E:\\software\\test\\Debug\\CuTest.obj
+freehep.nar.linker.test.arg.end=E:\\checkout\\axis2\\c\\modules\\core\\context\\target\\nar\\lib\\x86-win32-msvc\\context.obj
+
Added: webservices/axis2/trunk/c/modules/core/context/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/project.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/project.xml (added)
+++ webservices/axis2/trunk/c/modules/core/context/project.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project>
+ <extend>../../../project.xml</extend>
+ <id>axis2c-core-context</id>
+ <name>CONTEXT module</name>
+ <package>axis2c.core.context.*</package>
+ <description>CONTEXT project.</description>
+ <shortDescription>CONTEXT project</shortDescription>
+
+ <dependencies>
+ <!--dependency>
+ <groupId>j2ee</groupId>
+ <artifactId>j2ee</artifactId>
+ <version>1.3.1</version>
+ </dependency-->
+ </dependencies>
+
+</project>
Added: webservices/axis2/trunk/c/modules/core/description/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/maven.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/maven.xml (added)
+++ webservices/axis2/trunk/c/modules/core/description/maven.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,29 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project default="all" xmlns:m="jelly:maven">
+
+ <goal name="build-sub-module">
+ <attainGoal name="nar:compile" />
+ </goal>
+ <goal name="compile-tests">
+ <attainGoal name="nar:compile-tests" />
+ </goal>
+ <goal name="all" prereqs="build-sub-module,compile-tests" />
+
+</project>
Added: webservices/axis2/trunk/c/modules/core/description/project.properties.linux
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/project.properties.linux?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/project.properties.linux (added)
+++ webservices/axis2/trunk/c/modules/core/description/project.properties.linux Sun Sep 25 21:05:17 2005
@@ -0,0 +1,26 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.arch=i386
+freehep.nar.os=Linux
+freehep.nar.c.compiler=gcc
+freehep.nar.linker=gcc
+freehep.nar.compile.includepath=src /home/damitha/programs/cutest/include/
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+#freehep.nar.tests=description_test
+freehep.nar.linker.test.arg.end=-L/home/damitha/programs/cutest/lib -lcutest -Ltarget/nar/lib/i386-Linux-g++ -laxis2c-core-description-nar-0.0
Added: webservices/axis2/trunk/c/modules/core/description/project.properties.win.gcc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/project.properties.win.gcc?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/project.properties.win.gcc (added)
+++ webservices/axis2/trunk/c/modules/core/description/project.properties.win.gcc Sun Sep 25 21:05:17 2005
@@ -0,0 +1,26 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.arch=i386
+freehep.nar.os=win32
+i386.win32.freehep.nar.c.compiler=gcc
+freehep.nar.linker=gcc
+freehep.nar.compile.includepath=src E:\\software\\cutest\\include
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+freehep.nar.tests=description_test
+freehep.nar.linker.test.arg.end=-L E:\\software\\cutest\\lib -lcutest -L target\nar\lib\i386-win32 -laxis2c-core-description-nar-0.0
Added: webservices/axis2/trunk/c/modules/core/description/project.properties.win.msvc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/project.properties.win.msvc?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/project.properties.win.msvc (added)
+++ webservices/axis2/trunk/c/modules/core/description/project.properties.win.msvc Sun Sep 25 21:05:17 2005
@@ -0,0 +1,24 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.compile.includepath=src E:\\software\\cutest\\include
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+freehep.nar.tests=description_test
+freehep.nar.linker.test.arg.start=E:\\software\\test\\Debug\\CuTest.obj
+freehep.nar.linker.test.arg.end=E:\\checkout\\axis2\\c\\modules\\core\\description\\target\\nar\\lib\\x86-win32-msvc\\description.obj
+
Added: webservices/axis2/trunk/c/modules/core/description/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/project.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/project.xml (added)
+++ webservices/axis2/trunk/c/modules/core/description/project.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project>
+ <extend>../../../project.xml</extend>
+ <id>axis2c-core-description</id>
+ <name>DESCRIPTION module</name>
+ <package>axis2c.core.description.*</package>
+ <description>DESCRIPTION project.</description>
+ <shortDescription>DESCRIPTION project</shortDescription>
+
+ <dependencies>
+ <!--dependency>
+ <groupId>j2ee</groupId>
+ <artifactId>j2ee</artifactId>
+ <version>1.3.1</version>
+ </dependency-->
+ </dependencies>
+
+</project>
Added: webservices/axis2/trunk/c/modules/core/description/src/description.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/src/description.h?rev=291540&view=auto
==============================================================================
(empty)
Added: webservices/axis2/trunk/c/modules/core/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/maven.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/maven.xml (added)
+++ webservices/axis2/trunk/c/modules/core/maven.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project default="build-module"
+ xmlns:j="jelly:core"
+ xmlns:maven="jelly:maven">
+
+ <goal name="build-module">
+ <maven:reactor basedir="${basedir}"
+ includes="context/project.xml,description/project.xml"
+ goals="build-sub-module"
+ banner="Building Axis2C"
+ ignoreFailures="false"/>
+ </goal>
+
+</project>
Added: webservices/axis2/trunk/c/modules/core/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/project.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/project.xml (added)
+++ webservices/axis2/trunk/c/modules/core/project.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project>
+ <extend>../../project.xml</extend>
+ <id>axis2c-core</id>
+ <name>CORE module</name>
+ <package>axis2c.core.*</package>
+ <description>CORE module project.</description>
+ <shortDescription>CORE module project</shortDescription>
+
+ <dependencies>
+ <!--dependency>
+ <groupId>j2ee</groupId>
+ <artifactId>j2ee</artifactId>
+ <version>1.3.1</version>
+ </dependency-->
+ </dependencies>
+
+</project>
Added: webservices/axis2/trunk/c/modules/xml/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/maven.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/maven.xml (added)
+++ webservices/axis2/trunk/c/modules/xml/maven.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project default="build-module"
+ xmlns:j="jelly:core"
+ xmlns:maven="jelly:maven">
+
+ <goal name="build-module">
+ <maven:reactor basedir="${basedir}"
+ includes="om/project.xml,soap/project.xml"
+ goals="build-sub-module"
+ banner="Building Axis2C"
+ ignoreFailures="false"/>
+ </goal>
+
+</project>
Added: webservices/axis2/trunk/c/modules/xml/om/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/maven.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/maven.xml (added)
+++ webservices/axis2/trunk/c/modules/xml/om/maven.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,29 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project default="all" xmlns:m="jelly:maven">
+
+ <goal name="build-sub-module">
+ <attainGoal name="nar:compile" />
+ </goal>
+ <goal name="compile-tests">
+ <attainGoal name="nar:compile-tests" />
+ </goal>
+ <goal name="all" prereqs="build-sub-module,compile-tests" />
+
+</project>
Added: webservices/axis2/trunk/c/modules/xml/om/project.properties.linux
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/project.properties.linux?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/project.properties.linux (added)
+++ webservices/axis2/trunk/c/modules/xml/om/project.properties.linux Sun Sep 25 21:05:17 2005
@@ -0,0 +1,27 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.arch=i386
+freehep.nar.os=Linux
+freehep.nar.c.compiler=gcc
+freehep.nar.c.linker=gcc
+freehep.nar.c.compiler.arg.mid=-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread
+freehep.nar.compile.includepath=src /home/damitha/programs/cutest/include/ /home/damitha/programs/apr-1.2.1/include/apr-1 /home/damitha/programs/apr-iconv-0.9.5/include /home/damitha/programs/apr-util-1.2.1/include/apr-1 /home/damitha/programs/Guththila-c-p2/src
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+#freehep.nar.tests=om_test
+freehep.nar.linker.test.arg.end=/home/damitha/programs/cutest/lib/ -lcutest -Ltarget/nar/lib/i386-Linux-g++ -laxis2c-xml-om-nar-0.0
Added: webservices/axis2/trunk/c/modules/xml/om/project.properties.win.gcc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/project.properties.win.gcc?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/project.properties.win.gcc (added)
+++ webservices/axis2/trunk/c/modules/xml/om/project.properties.win.gcc Sun Sep 25 21:05:17 2005
@@ -0,0 +1,27 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.arch=i386
+freehep.nar.os=win32
+i386.win32.freehep.nar.c.compiler=gcc
+freehep.nar.linker=gcc
+freehep.nar.c.compiler.arg.mid=-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread
+freehep.nar.compile.includepath=src E:\\software\\cutest\\include E:\\software\\apr-1.2.1\\include\\apr-1 E:\\software\\apr-iconv-0.9.5\\include E:\\software\\apr-util-1.2.1\\include\\apr-1 E:\\software\\Guththila-c-p2\\src
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+#freehep.nar.tests=om_test
+freehep.nar.linker.test.arg.end=-L E:\\software\\cutest\\lib -lcutest -L target\nar\lib\i386-win32 -laxis2c-xml-om-nar-0.0
Added: webservices/axis2/trunk/c/modules/xml/om/project.properties.win.msvc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/project.properties.win.msvc?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/project.properties.win.msvc (added)
+++ webservices/axis2/trunk/c/modules/xml/om/project.properties.win.msvc Sun Sep 25 21:05:17 2005
@@ -0,0 +1,23 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.c.compiler.arg.mid=-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread
+freehep.nar.compile.includepath=src E:\\software\\cutest\\include E:\\software\\apr-1.2.1\\include\\apr-1 E:\\software\\apr-iconv-0.9.5\\include E:\\software\\apr-util-1.2.1\\include\\apr-1 E:\\software\\Guththila-c-p2\\src
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+#freehep.nar.tests=om_test
+freehep.nar.linker.test.arg.end=-L E:\\software\\cutest\\lib -lcutest -L target\nar\lib\i386-win32 -laxis2c-xml-om-nar-0.0
Added: webservices/axis2/trunk/c/modules/xml/om/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/project.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/project.xml (added)
+++ webservices/axis2/trunk/c/modules/xml/om/project.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project>
+ <extend>../../../project.xml</extend>
+ <id>axis2c-xml-om</id>
+ <name>OM Framework</name>
+ <package>axis2c.xml.om.*</package>
+ <description>OM project.</description>
+ <shortDescription>OM project</shortDescription>
+
+ <dependencies>
+ <!--dependency>
+ <groupId>j2ee</groupId>
+ <artifactId>j2ee</artifactId>
+ <version>1.3.1</version>
+ </dependency-->
+ </dependencies>
+
+</project>
Added: webservices/axis2/trunk/c/modules/xml/om/src/node.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/node.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/node.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/node.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,94 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "node.h"
+
+node_t *create_node()
+{
+ node_t *node = (node_t*)malloc(sizeof(node_t));
+ if(!node)
+ {
+ return NULL;
+ }
+ node->first_child =NULL;
+ node->last_child =NULL;
+ node->next_sibling =NULL;
+ node->prev_sibling =NULL;
+ node->parent =NULL;
+ node->element_type =0;
+ node->done =FALSE;
+ node->parser =NULL;
+ node->data_element =NULL;
+ return node;
+}
+
+
+void free_node(node_t *node)
+{
+ if(!node)
+ return;
+ //if(node->
+}
+
+void node_add_child(node_t *parent,node_t *child)
+{
+ if(!parent || !child)
+ return;
+ if(parent->first_child == NULL)
+ {
+ parent->first_child = child;
+ }else
+ {
+ parent->last_child->next_sibling = child;
+ child->prev_sibling = parent->last_child;
+ }
+ child->parent = parent;
+ parent->last_child = child;
+}
+
+
+
+node_t *detach_node(node_t *node_to_detach)
+{
+ node_t *node=NULL;
+ if(!node_to_detach)
+ {
+ return NULL;
+ }
+ if(!(node_to_detach->parent))
+ {
+ // elements that do not have a parent can't be detached
+ return NULL;
+ }
+ if((node_to_detach->prev_sibling) == NULL)
+ {
+ node = node_to_detach->parent;
+ node->first_child = node_to_detach->next_sibling;
+ }
+ else
+ {
+ node_to_detach->prev_sibling->next_sibling = node_to_detach->next_sibling;
+ }
+ node_to_detach->parent = NULL;
+ return node;
+}
+
+
+
+
+
+
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/node.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/node.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/node.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/node.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_NODE_H_
+#define _AXISC_NODE_H_
+
+#include <apr.h>
+#include <apr_pools.h>
+#include <xmlpullparser.h>
+
+#define TRUE 1 // to be used as boolean values
+#define FALSE 0
+
+
+
+static apr_pool_t *om_pool; // a memory pool to be used for this module
+
+
+enum omtypes{
+ OM_DOCUMENT=10,
+ OM_ELEMENT=20,
+ OM_DOCTYPE=30,
+ OM_COMMENT=40,
+ OM_ATTRIBUTE=50,
+ OM_NAMESPACE=60,
+ OM_PI=70,
+ OM_TEXT=80
+};
+
+struct node_s;
+typedef struct node_s node_t;
+
+/*
+* This is the structure that defines a node in om tree
+* parent - parent node if one is available
+* parser - carries a pointer to the XML_PullParser
+* element_type - the type of the element one of omtypes
+* data_element - stores the structs created for storing xml
+*/
+
+
+struct node_s{
+ struct node_s *parent;
+ struct node_s *prev_sibling;
+ struct node_s *next_sibling;
+ struct node_s *first_child;
+ struct node_s *last_child;
+ XML_PullParser *parser;
+ int element_type;
+ int done;
+ void* data_element;
+};
+
+
+//create a node and allocate memory
+node_t *create_node();
+//free a given nod
+void free_node(node_t *);
+// add a node as a child of parent node
+void node_add_child(node_t *parent,node_t *child);
+// detach a node form the parent and reset the other links
+node_t *node_detach(node_t *node_to_detach);
+// insert a sibling node
+void node_insert_sibling_after(node_t *current_ele,node_t *nodeto_insert);
+void node_insert_sibling_before(node_t *current_ele,node_t *nodeto_insert);
+
+// build the tree
+int node_build(node_t *node);
+
+
+
+void node_set_parent(node_t *parent);
+
+node_t *node_get_next_sibling(node_t *node);
+
+node_t *node_set_next_sibling(node_t *node);
+
+
+
+
+
+
+
+
+
+
+#endif // _AXISC_NODE_
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,54 @@
+#include "om_attribute.h"
+#include "string.h"
+
+
+om_attribute_t *create_om_attribute(const char *localname,const char *value,om_namespace_t *ns)
+{
+ om_attribute_t *attr = (om_attribute_t *)malloc(sizeof(om_attribute_t));
+ if(!attr)
+ {
+ //fprintf(stderr,"error ");
+ return NULL;
+ }
+
+ attr->localname = strdup(localname);
+ attr->value = strdup(value);
+ attr->ns = ns;
+ return attr;
+}
+
+void om_attribute_free(om_attribute_t *attr)
+{
+ if(attr)
+ {
+ free(attr->localname);
+ free(attr->value);
+ // should namespace pointer be freeed ...
+
+
+ }
+
+}
+
+qname_t *om_attribute_get_qname(om_attribute_t *attr)
+{ qname_t* qn=NULL;
+ if(attr)
+ {
+ if(attr->ns)
+ {
+ qn=create_qname(attr->localname,attr->ns->uri,attr->ns->prefix);
+ }
+ else
+ {
+ qn=create_qname(attr->localname,NULL,NULL);
+ }
+ return qn;
+ }
+ return NULL;
+
+}
+
+
+
+
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_attribute.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_OM_ATTRIBUTE_H_
+#define _AXISC_OM_ATTRIBUTE_H_
+
+#include "qname.h"
+#include "node.h"
+#include "om_namespace.h"
+
+
+struct om_attribute_s;
+typedef struct om_attribute_s om_attribute_t;
+
+struct om_attribute_s{
+ char *localname;
+ char *value;
+ om_namespace_t *ns;
+};
+
+om_attribute_t *create_om_attribute(const char *localname,const char *value,om_namespace_t *ns);
+qname_t *om_attribute_get_qname(om_attribute_t *attribute);
+void om_attribute_free(om_attribute_t *attr);
+
+
+
+
+
+
+#endif // _AXISC_ATTRIBUTE_H_
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_comment.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_comment.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_comment.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_comment.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "om_comment.h"
+#include "string.h"
+
+
+node_t *create_om_comment(const char *value)
+{
+ node_t *node =NULL;
+ om_comment_t *comment=NULL;
+
+ node= create_node();
+ if(!node)
+ {
+ // fprintf(stderr,"Error");
+ return NULL;
+ }
+ comment = (om_comment_t*)malloc(sizeof(om_comment_t));
+ if(!comment)
+ {
+ free(node);
+ //fprintf(stderr,"Error");
+ return NULL;
+
+ }
+ comment->value = strdup(value);
+ node->data_element = comment;
+ node->element_type = OM_COMMENT;
+ return node;
+}
+
+
+void om_comment_free(node_t *comment_node)
+{
+ if(!comment_node)
+ {
+ return;
+ }
+ if(comment_node->data_element)
+ {
+ free(((om_comment_t*)(comment_node->data_element))->value);
+ }
+
+
+}
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_comment.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_comment.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_comment.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_comment.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_OM_COMMENT_H_
+#define _AXISC_OM_COMMENT_H_
+#include "node.h"
+
+
+struct om_comment_s;
+typedef struct om_comment_s om_comment_t;
+struct om_comment_s
+{
+ char *value;
+};
+
+node_t *create_om_comment(const char *value);
+void om_comment_free(node_t *comment_node);
+
+#endif // _AXISC_OM_COMMENT_H_
+
+
+
+
+
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_container.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_container.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_container.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_container.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1 @@
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_container.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_container.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_container.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_container.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "node.h"
+
+struct om_container_s;
+typedef struct om_container_s om_container_t;
+
+struct om_container_s{
+ node_t *tree;
+};
+
+
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "om_doctype.h"
+
+node_t *create_om_doctype(const char *value)
+{
+ om_doctype_t *doctype=NULL;
+ node_t *node = create_node();
+ if(!node)
+ {
+ //fprintf(stderr,"Error");
+ return NULL;
+ }
+ doctype = (om_doctype_t*)malloc(sizeof(om_doctype_t));
+ if(!doctype){
+ free(node);
+ return NULL;
+ }
+
+ doctype->value = value;
+ node->data_element = doctype;
+ node->element_type = OM_DOCTYPE;
+ return node;
+}
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_doctype.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_OM_DOCTYPE_H_
+#define _AXISC_OM_DOCTYPE_H_
+#include "node.h"
+
+
+struct om_doctype_s;
+typedef struct om_doctype_s om_doctype_t;
+
+struct om_doctype_s
+{
+ char *value;
+};
+
+node_t *create_om_doctype(const char *value);
+char *om_text_get_text(node_t *text_node);
+
+#endif // _AXISC_OM_DOCTYPE_H_
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_document.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_document.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_document.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_document.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "om_document.h"
+#include "stdlib.h"
+
+om_document_t *create_om_document()
+{
+ om_document_t *doc=(om_document_t *)malloc(sizeof(om_document_t));
+ if(!doc)
+ {
+
+ //error handling should go hear
+
+ }
+ doc->first_child = NULL;
+ doc->last_child = NULL;
+ doc->root_element= NULL;
+ return doc;
+
+}
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_document.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_document.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_document.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_document.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_OM_DOCUMENT_H_
+#define _AXISC_OM_DOCUMENT_H_
+#include "node.h"
+
+struct om_document_s;
+typedef struct om_document_s om_document_t;
+
+struct om_document_s
+{
+ node_t *root_element;
+ node_t *first_child;
+ node_t *last_child;
+};
+
+om_document_t *create_om_document();
+void free_om_document(om_document_t *document);
+
+
+
+
+#endif // _AXISC_OM_DOCUMENT_H_
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_element.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_element.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_element.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,349 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "om_element.h"
+#include "om_attribute.h"
+#include <stdlib.h>
+
+
+
+node_t* create_om_element(const char* localname,om_namespace_t* ns)
+{
+ node_t* node=create_node();
+ if(!(node))
+ {
+ om_element_t* element=(om_element_t*)malloc(sizeof(om_element_t));
+ if(element)
+ {
+ element->localname = strdup(localname);
+ element->ns = ns;
+ }
+ else
+ {
+ //could not allocate memory
+ free(node);
+ return NULL;
+ }
+
+ node->element_type=OM_ELEMENT;
+ return node;
+ }
+return NULL;
+}
+// create an om element using localname namespace and parent element
+
+node_t *create_om_element_with_parent(const char *localname,om_namespace_t *ns,node_t *parent)
+{
+ node_t *curr_node = create_om_element(localname,ns);
+ if(!curr_node)
+ {
+ //unable to create an element
+ return NULL;
+ }
+ if(!parent)
+ return curr_node;
+
+ curr_node->parent = parent;
+ node_add_child(parent,curr_node);
+ curr_node->done =TRUE;
+ return curr_node;
+}
+
+// create an om_element using qname and parent
+node_t *create_om_element_with_qname_parent(qname_t *qname,node_t *parent)
+{
+ node_t *node=NULL;;
+ if(!qname)
+ {
+ return NULL; // can't create an element
+
+ }
+ node=create_om_element_with_parent(qname->localpart,NULL,parent);
+ if(node)
+ {
+ ((om_element_t*)(node->data_element))->ns= om_element_handle_namespace_with_qname(node,qname);
+ }
+ return node;
+}
+om_namespace_t *om_element_declare_namespace_with_ns_uri_prefix(om_element_t *element,const char* uri,const char *prefix)
+{
+ om_namespace_t *nsp=NULL;
+ nsp=create_om_namespace(uri,prefix);
+ if(nsp)
+ return om_element_declare_namespace(element,nsp);
+ return NULL;
+}
+
+
+
+
+
+
+// declare a namespace for this om element
+
+om_namespace_t *om_element_declare_namespace(om_element_t *element,om_namespace_t *ns)
+{
+ apr_status_t status;
+
+ if(!element || !ns)
+ {
+ return NULL;
+ }
+
+
+ if(!element->namespaces)
+ {
+ if(!om_pool)
+ {
+ status=apr_pool_create(&om_pool,NULL);
+ }
+ element->namespaces = apr_hash_make(om_pool);
+ }
+
+ apr_hash_set(element->namespaces,ns->prefix,APR_HASH_KEY_STRING,ns);
+ return ns;
+}
+
+/*
+* checks for the namespace in the current om element
+* can be used to retrive a prefix of a known namespace uri
+*
+*/
+om_namespace_t *om_element_find_declared_namespace(om_element_t *element,const char *uri,const char *prefix)
+{
+ void *ns=NULL;
+ if(!element || !ns)
+ {
+ return NULL;
+ }
+ if(!prefix || strcmp(prefix,"")== 0)
+ {
+ // should traverse through the namespaces
+
+
+ }
+ ns=apr_hash_get(element->namespaces,prefix,APR_HASH_KEY_STRING);
+ return (void*)ns;
+}
+
+/*
+* This will find a namespace with the given uri and prefix, in the scope of the docuemnt.
+* This will start to find from the current element and goes up in the hiararchy until this finds one.
+*
+*/
+
+om_namespace_t *om_element_find_namespace(node_t *element_node,const char *uri,const char *prefix)
+{
+ om_element_t *ele=NULL;
+ om_namespace_t *ns=NULL;
+ if(!element_node)
+ {
+ return NULL;
+ }
+ if(!(element_node->data_element) || element_node->element_type != OM_ELEMENT)
+ {
+ // wrong element type or null node
+
+ return NULL;
+ }
+ ele = (om_element_t *)(element_node->data_element);
+
+
+ ns = om_element_find_declared_namespace(ele,uri,prefix);
+ if(!ns)
+ {
+ return ns;
+ }
+ if((element_node->parent != NULL) && (element_node->parent->element_type == OM_ELEMENT) )
+ {
+ om_element_find_namespace(element_node->parent,uri,prefix);
+ }
+return NULL;
+}
+
+static om_namespace_t *om_element_handle_namespace_with_qname(node_t *element_node,qname_t *qname)
+{
+ om_namespace_t *pns=NULL;
+ char *ns_uri = qname->ns_uri;
+ if(ns_uri != NULL)
+ {
+ pns = om_element_find_namespace(element_node,ns_uri,qname->prefix);
+ /**
+ * What is left now is
+ * 1. nsURI = null & parent != null, but ns = null
+ * 2. nsURI != null, (parent doesn't have an ns with given URI), but ns = null
+ */
+ if(pns == NULL)
+ {
+ if(qname->prefix)
+ {
+ pns = om_element_declare_namespace_with_ns_uri_prefix((om_element_t*)element_node->data_element,ns_uri,qname->prefix);
+ }
+ }
+ }
+ return NULL;
+}
+
+
+
+
+
+
+
+static om_namespace_t* om_element_handle_namespace(node_t *element_node,om_namespace_t *ns)
+{
+ om_namespace_t *ns1=NULL;
+ if(!ns || !element_node)
+ {
+ // namespace null handle condition
+
+ }
+ ns1 = om_element_find_namespace( element_node,ns->uri,ns->prefix);
+
+ if(!ns1)
+ {
+ ns1 = om_element_declare_namespace((om_element_t*)(element_node->data_element),ns);
+ }
+ return ns1;
+}
+
+
+om_attribute_t* om_element_add_attribute(om_element_t *element,om_attribute_t *attr)
+{
+ apr_status_t status;
+ qname_t *t=NULL;
+ char *key=NULL;
+ if(!element)
+ {
+ //fprintf(stderr,"Error");
+ return NULL;
+ }
+ if(!(element->attributes))
+ {
+ if(!om_pool)
+ {
+ status = apr_pool_create(&om_pool,NULL);
+ // error handling should go hear
+ }
+ element->attributes = apr_hash_make(om_pool);
+ }
+ t=om_attribute_get_qname(attr);
+ key=construct_key_from_qname(t);
+ apr_hash_set(element->attributes,key,APR_HASH_KEY_STRING,attr);
+ return attr;
+}
+
+
+
+static char* construct_key_from_qname(qname_t *qname)
+{
+
+ // concatanation order is localpart prefix namespaceuri
+ char *key=NULL;
+ size_t i=0;
+ if(!qname){
+ //fprintf(stderr,"Error null value for qname ");
+ return NULL;
+ }else{
+ if(qname->localpart)
+ i+=strlen(qname->localpart);
+ if(qname->ns_uri)
+ i+=strlen(qname->ns_uri);
+ if(qname->prefix)
+ i+=strlen(qname->prefix);
+ key = (char *)calloc(i+1,sizeof(char));
+ if(qname->localpart)
+ strcat(key,qname->localpart);
+ if(qname->prefix)
+ strcat(key,qname->prefix);
+ if(qname->ns_uri)
+ strcat(key,qname->ns_uri);
+ return key;
+
+ }
+ return NULL;
+}
+/*
+* The node passed to the method should have the data element as of type OM_ELEMENT
+*
+*
+*
+*/
+
+om_attribute_t *om_attribute_add_attribute_with_namespace(node_t *element_node,const char *attribute_name,const char *value,om_namespace_t *ns)
+{ om_namespace_t *t=NULL;
+ if(!element_node)
+ {
+ return NULL;
+
+ }else if(element_node->element_type != OM_ELEMENT)
+ {
+ return NULL;
+ }
+
+
+ if(ns)
+ {
+ t=om_element_find_namespace(element_node,ns->uri,ns->prefix);
+ if(t == NULL)
+ {
+ //fprintf(stderr,"prefix %s ns_uri %s This namespace is not in the scope of this element",ns->prefix,ns->uri);
+ return NULL;
+ }
+ }
+ return om_element_add_attribute((om_element_t*)element_node->data_element,create_om_attribute(attribute_name,value,ns));
+}
+
+/*
+void om_element_remove_attribute(om_element_t *element,om_attribute_t *attribute)
+{
+ qname_t *qname=NULL;
+ char* key=NULL;
+ if(!element || !(element->attributes))
+ {
+ // error handling
+ return NULL;
+ }
+ qname = om_attribute_get_qname(attribute);
+ if(qname)
+ {
+ key=construct_key_from_qname(qname);
+ //apr_hash_
+
+
+
+ }
+
+
+
+
+
+
+}
+*/
+
+void om_element_set_namespace(node_t* node,om_namespace_t *ns)
+{
+ om_namespace_t *nsp=NULL;
+ if(ns && node && (node->data_element))
+ {
+ nsp = om_element_handle_namespace(node,ns);
+ }
+ ((om_element_t*)node->data_element)->ns = nsp;
+}
+
+
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_element.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_element.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_element.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_element.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,93 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_OM_ELEMENT_H_
+#define _AXISC_OM_ELEMENT_H_
+
+#include "om_namespace.h"
+#include "om_container.h"
+#include "om_attribute.h"
+#include "node.h"
+#include "apr.h"
+#include "apr_hash.h"
+
+struct om_element_s;
+typedef struct om_element_s om_element_t;
+
+struct om_element_s{
+ om_namespace_t *ns; // current namespace
+ char *localname;
+ //int done;
+ int pns_counter; // prefix namespace counter
+ apr_hash_t *attributes; // a hashtable for storing attributes
+ apr_hash_t *namespaces; // hashtable for storing namespaces
+};
+
+void free_om_element(node_t *element_node);
+/*
+* Create an om element using localname and namespace
+*
+*/
+node_t *create_om_element(const char *localname,om_namespace_t *ns);
+/*
+* create om element using localname namespace and parent element
+*
+*/
+node_t *create_om_element_with_parent(const char *localname,om_namespace_t *ns,node_t *parent);
+
+
+/*
+* Find a namespace in the scope of the document
+* start to find from current element and go up the hierarchy
+*
+*/
+node_t *create_om_element_with_qname_parent(qname_t *qname,node_t *parent);
+
+
+
+
+
+
+om_namespace_t *om_element_find_namespace(node_t *element_node,const char *uri,const char *prefix);
+
+
+// declare a namespace in current element
+om_namespace_t *om_element_declare_namespace(om_element_t *element,om_namespace_t *ns);
+
+om_namespace_t *om_element_find_declared_namespace(om_element_t *element_node,const char *uri,const char *prefix);
+
+om_attribute_t *om_element_add_attribute(om_element_t *element,om_attribute_t *attribute);
+
+om_attribute_t *om_attribute_add_attribute_with_namespace(node_t* element_node,const char *attribute_name,const char *value,om_namespace_t *ns);
+
+static char* construct_key_from_qname(qname_t *qname);
+
+
+static om_namespace_t *om_element_handle_namespace_with_qname(node_t *element_node,qname_t *qname);
+//void om_element_remove_attribute(om_element_t *element,om_attribute_t *attribute);
+
+void om_element_set_namespace(node_t *element_node,om_namespace_t *ns);
+
+om_namespace_t *om_element_declare_namespace_with_nsuri_prefix(om_element_t *element,const char* uri,const char *prefix);
+
+
+
+
+
+
+
+#endif // _AXISC_OM_ELEMENT
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "om_namespace.h"
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+
+
+
+om_namespace_t *create_om_namespace(const char *uri,const char *prefix)
+{
+ om_namespace_t *ns=(om_namespace_t*)malloc(sizeof(om_namespace_t));
+ if(!ns)
+ {
+ //fprintf(stderr,"Couldnot allocate momery");
+ return NULL;
+ }
+ ns->uri = strdup(uri);
+ ns->prefix = strdup(prefix);
+ return ns;
+}
+
+
+
+void free_om_namespace(om_namespace_t *ns)
+{
+ if(ns)
+ free(ns);
+}
+
+int om_namespace_equals(om_namespace_t *ns1,om_namespace_t *ns2);
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_OM_NAMESPACE_H_
+#define _AXISC_OM_NAMESPACE_H_
+
+struct om_namespace_s;
+typedef struct om_namespace_s om_namespace_t;
+
+struct om_namespace_s{
+ char *uri;
+ char *prefix;
+};
+
+
+om_namespace_t *create_om_namespace(const char *uri,const char *prefix);
+void free_om_namespace(om_namespace_t *ns);
+int om_namespace_equals(om_namespace_t *ns1,om_namespace_t *ns2);
+
+#endif // _AXISC_OM_NAMESPACE
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_pi.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_pi.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_pi.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_pi.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "om_pi.h"
+#include "stdlib.h"
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_pi.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_pi.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_pi.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_pi.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_OM_PI_H_
+#define _AXISC_OM_PI_H_
+#include "node.h"
+
+struct om_pi_s;
+typedef struct om_pi_s om_pi_t;
+struct om_pi_s{
+ char *target;
+ char *value;
+};
+
+node_t *create_om_processing_instruction_with_parent(node_t *parent,const char *target,const char *value);
+
+node_t *create_om_processing_instruction(node_t *parent);
+
+void om_pi_serialize_with_cache(FILE *output_stream);
+
+void om_pi_discard(om_pi_t *om_pi);
+
+
+
+
+
+
+#endif // _AXISC_OM_PI_H_
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_text.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_text.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_text.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_text.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,85 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "om_text.h"
+#include "string.h"
+#include "node.h"
+
+node_t *create_om_text(const char *value)
+{
+ om_text_t *text;
+ node_t *node= create_node();
+ if(!node)
+ {
+ // error handling
+ return NULL;
+ }
+ text =(om_text_t*)malloc(sizeof(om_text_t));
+ if(!text)
+ {
+ // error handling
+ return NULL;
+ }
+ text->value =strdup(value);
+ text->attribute=NULL;
+ text->content_id=NULL;
+ text->mime_type = NULL;
+ node->data_element = text;
+ node->element_type = OM_TEXT;
+ return node;
+}
+node_t *create_om_text_with_parent(node_t *parent,const char *value)
+{
+ node_t *node;
+ if(!parent)
+ return NULL;
+ node = create_om_text(value);
+ if(!node)
+ {
+ // error handling
+ return NULL;
+ }
+ node->done = TRUE;
+ // set parent as the parent of this text node
+ node->parent=parent;
+ node_add_child(parent,node);
+ return node;
+}
+
+char *om_text_get_text(om_text_t *text)
+{
+ if(!text)
+ {
+ // error
+ return NULL;
+ }
+ if(text->value)
+ return text->value;
+
+ else
+ {
+ //MTOM handling logic should go hear
+
+ }
+ return NULL;
+}
+
+
+
+
+
+
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/om_text.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/om_text.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/om_text.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/om_text.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_OM_TEXT_H_
+#define _AXISC_OM_TEXT_H_
+#include "om_attribute.h"
+
+struct om_text_s;
+typedef struct om_text_s om_text_t;
+
+struct om_text_s
+{
+ char *value;
+ // mtom stuff
+ char *mime_type;
+ int optimize;
+ int is_binary;
+ char *content_id;
+ om_attribute_t *attribute;
+
+};
+
+node_t *create_om_text(const char *value);
+
+char* om_text_get_text(om_text_t *textnode);
+node_t *create_om_text_with_parent(node_t *parent,const char *value);
+
+
+
+
+
+
+
+#endif // _AXISC_OM_TEXT_H_
+
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/qname.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/qname.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/qname.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/qname.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "qname.h"
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+
+qname_t *create_qname(const char *localname,const char *ns_uri,const char *prefix)
+{
+ qname_t *qn = (qname_t*)malloc(sizeof(qname_t));
+ if(!qn)
+ {
+ //fprintf(stderr,"Error allocating memory");
+ return NULL;
+ }
+ qn->localpart = strdup(localname);
+ qn->ns_uri = strdup(ns_uri);
+ qn->prefix = strdup(prefix);
+ return qn;
+}
+void free_qname(qname_t *qn)
+{
+ if(qn)
+ free(qn);
+}
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/qname.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/qname.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/qname.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/qname.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_QNAME_H_
+#define _AXISC_QNAME_H_
+
+static const char XML_NAMESPACE_URI[] ="http://www.w3c.org/XML/1998/namespace";
+
+struct qname_s;
+typedef struct qname_s qname_t;
+
+struct qname_s{
+ char *localpart;
+ char *ns_uri;
+ char *prefix;
+
+};
+
+qname_t *create_qname(const char *localname,const char *ns_uri,const char *prefix);
+void free_qname(qname_t *qn);
+
+#endif // _AXISC_QNAME_H_
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
Added: webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.h?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.h (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/stax_ombuilder.h Sun Sep 25 21:05:17 2005
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _AXISC_STAX_OMBUILDER_H_
+#define _AXISC_STAX_OMBUILDER_H_
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#endif // _AXISC_STAX_OMBUILDER_H_
+
Added: webservices/axis2/trunk/c/modules/xml/om/test/om_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/test/om_test.c?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/test/om_test.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/test/om_test.c Sun Sep 25 21:05:17 2005
@@ -0,0 +1,33 @@
+#include <strutil.h>
+#include <CuTest.h>
+#include <string.h>
+#include <stdio.h>
+#include <node.h>
+
+void Testnode_detach(CuTest *tc) {
+ node_t test_node = malloc(sizeof(node_t));
+ CuAssertStrEquals(tc, expected, actual);
+ }
+
+ CuSuite* StrUtilGetSuite() {
+ CuSuite* suite = CuSuiteNew();
+ SUITE_ADD_TEST(suite, TestStrToUpper);
+ return suite;
+ }
+
+ void RunAllTests(void) {
+ CuString *output = CuStringNew();
+ CuSuite* suite = CuSuiteNew();
+
+ CuSuiteAddSuite(suite, StrUtilGetSuite());
+
+ CuSuiteRun(suite);
+ CuSuiteSummary(suite, output);
+ CuSuiteDetails(suite, output);
+ printf("%s\n", output->buffer);
+ }
+
+ int main(void) {
+ RunAllTests();
+ return 0;
+ }
Added: webservices/axis2/trunk/c/modules/xml/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/project.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/project.xml (added)
+++ webservices/axis2/trunk/c/modules/xml/project.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project>
+ <extend>../../project.xml</extend>
+ <id>axis2c-xml</id>
+ <name>XML module</name>
+ <package>axis2c.xml.*</package>
+ <description>XML module project.</description>
+ <shortDescription>XML module project</shortDescription>
+
+ <dependencies>
+ <!--dependency>
+ <groupId>j2ee</groupId>
+ <artifactId>j2ee</artifactId>
+ <version>1.3.1</version>
+ </dependency-->
+ </dependencies>
+
+</project>
Added: webservices/axis2/trunk/c/modules/xml/soap/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/maven.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/maven.xml (added)
+++ webservices/axis2/trunk/c/modules/xml/soap/maven.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,29 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project default="all" xmlns:m="jelly:maven">
+
+ <goal name="build-sub-module">
+ <attainGoal name="nar:compile" />
+ </goal>
+ <goal name="compile-tests">
+ <attainGoal name="nar:compile-tests" />
+ </goal>
+ <goal name="all" prereqs="build-sub-module,compile-tests" />
+
+</project>
Added: webservices/axis2/trunk/c/modules/xml/soap/project.properties.linux
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/project.properties.linux?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/project.properties.linux (added)
+++ webservices/axis2/trunk/c/modules/xml/soap/project.properties.linux Sun Sep 25 21:05:17 2005
@@ -0,0 +1,26 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.arch=i386
+freehep.nar.os=Linux
+freehep.nar.c.compiler=gcc
+freehep.nar.linker=gcc
+freehep.nar.compile.includepath=src /home/damitha/programs/cutest/include/
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+#freehep.nar.tests=soap_test
+freehep.nar.linker.test.arg.end=-L/home/damitha/programs/cutest/lib -lcutest -Ltarget/nar/lib/i386-Linux-g++ -laxis2c-xml-soap-nar-0.0
Added: webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.gcc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.gcc?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.gcc (added)
+++ webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.gcc Sun Sep 25 21:05:17 2005
@@ -0,0 +1,26 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.arch=i386
+freehep.nar.os=win32
+i386.win32.freehep.nar.c.compiler=gcc
+freehep.nar.linker=gcc
+freehep.nar.compile.includepath=src E:\\software\\cutest\\include
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+freehep.nar.tests=soap_test
+freehep.nar.linker.test.arg.end=-L E:\\software\\cutest\\lib -lcutest -L target\nar\lib\i386-win32 -laxis2c-xml-soap-nar-0.0
Added: webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.msvc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.msvc?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.msvc (added)
+++ webservices/axis2/trunk/c/modules/xml/soap/project.properties.win.msvc Sun Sep 25 21:05:17 2005
@@ -0,0 +1,24 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+freehep.nar.compile.includepath=src E:\\software\\cutest\\include
+freehep.nar.src=src
+freehep.nar.outtype=shared
+freehep.nar.test.src=test
+freehep.nar.tests=soap_test
+freehep.nar.linker.test.arg.start=E:\\software\\test\\Debug\\CuTest.obj
+freehep.nar.linker.test.arg.end=E:\\checkout\\axis2\\c\\modules\\xml\\soap\\target\\nar\\lib\\x86-win32-msvc\\strutil.obj
+
Added: webservices/axis2/trunk/c/modules/xml/soap/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/project.xml?rev=291540&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/project.xml (added)
+++ webservices/axis2/trunk/c/modules/xml/soap/project.xml Sun Sep 25 21:05:17 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project>
+ <extend>../../../project.xml</extend>
+ <id>axis2c-xml-soap</id>
+ <name>SOAP module</name>
+ <package>axis2c.xml.soap.*</package>
+ <description>SOAP project.</description>
+ <shortDescription>SOAP project</shortDescription>
+
+ <dependencies>
+ <!--dependency>
+ <groupId>j2ee</groupId>
+ <artifactId>j2ee</artifactId>
+ <version>1.3.1</version>
+ </dependency-->
+ </dependencies>
+
+</project>