fasdfkjpwoef 2016-02-03 04:25 采纳率: 0%
浏览 1490
已结题

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

在使用SOAPElement添加子类,如下图:
图片说明
生居的XML格式如下图:
图片说明
要怎么才能生成字符成对出现,如下图:
图片说明

  • 写回答

2条回答

  • tony4geek 2016-02-03 05:16
    关注

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

     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)
    
    评论

报告相同问题?

悬赏问题

  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思