soapelement-在SOAPElement中添加空字符串子类怎么成对出显

问题描述

在SOAPElement中添加空字符串子类怎么成对出显

在使用SOAPElement添加子类,如下图:

生居的XML格式如下图:

要怎么才能生成字符成对出现,如下图:

解决方案

好像改不了吧。 除非修改它的源码

 addAttribute

SOAPElement addAttribute(Name name,
                         String value)
                         throws SOAPException
Adds an attribute with the specified name and value to this SOAPElement object.
Parameters:
name - a Name object with the name of the attribute
value - a String giving the value of the attribute
Returns:
the SOAPElement object into which the attribute was inserted
Throws:
SOAPException - if there is an error in creating the Attribute, or it is invalid to set an attribute with Name name on this SOAPElement.
See Also:
addAttribute(javax.xml.namespace.QName, String)

解决方案二:

上面拷贝错了
http://www.javadocexamples.com/java_source/com/sauria/apachexml/ch9/MessageBookService/MessageBookProvider.java.html

addTextNode

SOAPElement addTextNode(String text)
                        throws SOAPException
Creates a new Text object initialized with the given String and adds it to this SOAPElement object.
Parameters:
text - a String object with the textual content to be added
Returns:
the SOAPElement object into which the new Text object was inserted
Throws:
SOAPException - if there is an error in creating the new Text object or if it is not legal to attach it as a child to this SOAPElement
时间: 2024-07-28 13:10:15

soapelement-在SOAPElement中添加空字符串子类怎么成对出显的相关文章

JDK1.5中添加enum类与数据库表进行映射

在JDK1.5中添加了enum类,它可以用来与数据库表进行映射.而且实现起来非常方便. 下面举个例子: 开发环境: JDK 1.6 U2 eclipse 3.3 数据库中有一表:UserUser 其有两个字段:1.id:2.username, 我们就映射出一个enum: public enum UserUser { username, id; } 接下来我们就开始用它来写SQL语句了: public class UserTest { public static void main(String

android-如何在运行时给spinner中添加items?

问题描述 如何在运行时给spinner中添加items? 我想在一个spinner中添加另一个类的list中的items.使用的下面的代码但是给出null pointer exception. ArrayAdapter<Address> adapter = new ArrayAdapter<Address>( this android.R.layout.simple_spinner_item HomePage.NearPlaces);adapter.setDropDownViewR

在类中添加断言

简述:用try捕获异常后主动抛出一个异常,在Global.asax.vb的Application_Error中用Server.ClearError()清除异常,用System.Web.HttpContext.Current.Response输出javascript代码实现信息提醒和返回上一页. 详细说明:例如,把连接数据库的方法做成一个类cdbconn.vb.问题在于当数据库连接失败的时候,系统自动抛出的连接失败的异常的处理.由于程序调用该类的对象后的动作不可预计,因此最好在处理该异常后,后台程

在RichEdit中添加表情图象的类

说明 本文根据VC知识库<在线杂志>的第30期的一篇文章:<类似 MSN 信息发送框的制作>,介绍了一个可以在RichEdit中添加表情图象的类CFaceEdit. 以下是使用这个类的程序截图: 图一 CFaceEdit类的使用 使用方法 我们可以先看一下它的使用方法: //将对话框类成员变量由CRichEditCtrl改为CFaceEdit CFaceEdit m_FaceEdit; //自定义一组表情 CString pSymbol[] = {":)", &

mfc-MFC中添加已经写好的类。

问题描述 MFC中添加已经写好的类. 添加完该类的.cpp和.h文件,但是创建变量时无法用该类创建变量,添加完该类时,我还需要做哪些工作.我是在自己的工程里添加了一个别人的改变EDIT的外观的类,但是在创建变量时找不到添加好的类. 解决方案 你包含好对应的h,cpp文件后,可以先绑定一个控件的变量,先选CEdit类,然后在编译器帮你生成的代码中把CEdit类替换成你的新的类 对于自定义类,MFC没法直接识别,你可以自己进行代码替换 解决方案二: 在使用该类的源文件开头还要包含该类的头文件.如:

mfc 类-MFC中添加一个类,在另一个类中使用时出现错误,好像没有识别

问题描述 MFC中添加一个类,在另一个类中使用时出现错误,好像没有识别 我新建的类类名是OLSRGram 在另一个类中我构造这个类的对象OLSRGram olsr 调用 olsr.olsr_messagetype等等 出现错误:left of '.olsr_data' must have class/struct/union type F:SnifferCapPackView.cpp(150) : error C2228: left of '.olsr_datalen' must have cl

graphicsitem-Qt中如何在自定义的item类(继承于grahcsitem)中添加图片?

问题描述 Qt中如何在自定义的item类(继承于grahcsitem)中添加图片? rt 如何添加自己想要添加的图片 特别是路径 需要有人能详细的说下 拜托了. 解决方案 http://www.cnblogs.com/jamesmile/p/3871503.html 解决方案二: 直接绘图就可以了http://qimo601.iteye.com/blog/1539147

graphics tem-1Qt如何在graphicsitem的继承类中添加图片?2如何给graphicsitem进行布局?

问题描述 1Qt如何在graphicsitem的继承类中添加图片?2如何给graphicsitem进行布局? 1Qt如何在graphicsitem的继承类中添加图片?? 2如何给graphicsitem进行布局?垂直平分 谢谢各位了

向已存在的要素类中添加字段

在写AE程序的时候,一定要进行License的验证.如果是WinForm程序,可以向窗口上拖放一个ArcGIS License控件:如果是Console程序,可以添加ArcGIS License Checking代码 1)通过IFieldsEdit接口的AddField方法的函数 static void AddField_IFields(IFeatureClass pFC, string name) { IFields pFields = pFC.Fields; IFieldsEdit pFie