7#include "xfa/fxfa/parser/cxfa_dataexporter.h"
9#include "core/fxcrt/fx_codepage.h"
10#include "core/fxcrt/xml/cfx_xmlelement.h"
11#include "core/fxcrt/xml/cfx_xmlnode.h"
12#include "third_party/base/check.h"
13#include "xfa/fxfa/parser/cxfa_document.h"
14#include "xfa/fxfa/parser/cxfa_node.h"
15#include "xfa/fxfa/parser/xfa_utils.h"
29 "<xdp:xdp xmlns:xdp=\"http://ns.adobe.com/xdp/\">");
30 for (
CXFA_Node* pChild = pNode->GetFirstChild(); pChild;
31 pChild = pChild->GetNextSibling()) {
34 pStream->WriteString(
"</xdp:xdp>\n");
42 CXFA_Node* pDataNode = pNode->GetFirstChild();
64 CXFA_Node* pDataNode = pNode->GetParent();
66 for (
CXFA_Node* pChildNode = pDataNode->GetFirstChild(); pChildNode;
67 pChildNode = pChildNode->GetNextSibling()) {
68 if (pChildNode != pNode) {
69 pExportNode = pDataNode;
79 L"http://www.xfa.org/schema/xfa-data/1.0/"
);
CFX_XMLElement * ToXMLElement(CFX_XMLNode *pNode)
void Save(const RetainPtr< IFX_RetainableWriteStream > &pXMLStream) override
void SetAttribute(const WideString &name, const WideString &value)
void RemoveAttribute(const WideString &name)
bool Export(const RetainPtr< IFX_SeekableStream > &pWrite, CXFA_Node *pNode)
CFX_XMLNode * GetXMLMappingNode() const
XFA_PacketType GetPacketType() const
void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node *pDataNode)
void XFA_DataExporter_RegenerateFormFile(CXFA_Node *pNode, const RetainPtr< IFX_SeekableStream > &pStream, bool bSaveXML)