Anyone have an idea how to use tinyxml for G85 wafermap to C? -
<?xml version='1.0' encoding='utf-8'?>
-
- <Maps>
-
- <Map xmlns="http://www.semi.org" SubstrateId="123456705F2" SubstrateType="Wafer"
-
FormatRevision="SEMI G85-0703">
-
- <Device Rows="35" LotId="1234567.111" BinType="ASCII" Columns="40" MapType="Array"
-
NullBin="0" ProductId="MT*" WaferSize="200" CreateDate="20050117093925000" DeviceSizeX="4800.60"
-
DeviceSizeY="5484.12" MicronLotId="1234567.111" Orientation="0" SupplierName="Micron Technology,
-
Inc." OriginLocation="2">
-
<ReferenceDevice ReferenceDeviceX="27" ReferenceDeviceY="34"/>
-
<Bin BinCode="G" BinCount="830" BinQuality="Pass"/>
-
<Bin BinCode="X" BinCount="255" BinQuality="Fail"/>
-
- <Data>
-
-<Row><![CDATA[00000000000000XXXXGXXGGGXX00000000000000]]></Row>
-
-<Row><![CDATA[000000000000XXXGGXXGXGGXGGGX000000000000]]></Row>
-
-<Row><![CDATA[0000000000XGXGGGGGGGGXXXGGGGGX0000000000]]></Row>
-
-<Row><![CDATA[00000000GGGGGXGGGGGXGXGGGGGXGGXX00000000]]></Row>
-
-<Row><![CDATA[000000XGXGGGGGGGGGGGGGGGGGGGGGGGG0000000]]></Row>
-
-<Row><![CDATA[00000XXXGXXXGGGGGGGGXXGGGXGGGGGGGGX00000]]></Row>
-
-<Row><![CDATA[0000XXGGGGGGGGGGGGGGGGGGGGGGGGGGGGX00000]]></Row>
-
-<Row><![CDATA[0000GGGGGXGGGGGGGGGGGGGGXGGGXGGGGGGX0000]]></Row>
-
-<Row><![CDATA[000GGGGGGGGGGGGGGGGGGGGGGXGGGGGXGGXGX000]]></Row>
-
-<Row><![CDATA[00XXGGGGXGGXGGGGGGGXGGGGGXXGGGGGGXXGGX00]]></Row>
-
-<Row><![CDATA[00GGGGGGXGXGGGGGGGGGGGGGGGGXXGGXGGGGGG00]]></Row>
-
-<Row><![CDATA[0XGGGGXGGXGGXGGGGGGGGGGGGGGGGGGGGGGGGGX0]]></Row>
-
-<Row><![CDATA[0GGGXXGGGXXXGGGGGGGGGGGGGGXGGXGGGXXGGGX0]]></Row>
-
-<Row><![CDATA[0XGGGGGGGGGXGGGGGGGGGXGGGGXXGGGGGGGGGGG0]]></Row>
-
-<Row><![CDATA[XGGGGGGGGGGXGGGXGGXGGGGGXGXXGGGGGGGGXGGX]]></Row>
-
-<Row><![CDATA[XGGGGGGGXGXXGGGGGGGGGGGGGGXGGXGGGXGGXGGX]]></Row>
-
-<Row><![CDATA[XGGGGGGXXGGXGGGGGGGXXGGGXGGXGXXGGXGXXGGX]]></Row>
-
-<Row><![CDATA[XGXGGGGGXGXXXXGGGGGXXGGGXXXXXXXGXGGGGGGX]]></Row>
-
-<Row><![CDATA[XGGGXGGGGGXGGGGGGGGGXGGGXXGGGXXGGGGGGGGX]]></Row>
-
-<Row><![CDATA[XGXGXGGGGGGXGGGXGGGGGGXGGGGGXXGGGGGGGGGX]]></Row>
-
-<Row><![CDATA[XGGGGGGGXXGGGGGGXGGXGGGXGGGGXGGGGGGGGXGX]]></Row>
-
-<Row><![CDATA[0GXGGGGGGGGGGGGGXGGGGGGGGGGGGGGXGGGGGGG0]]></Row>
-
-<Row><![CDATA[0GXGGGGGGGGGGGGGGGGGGXGGGGGGXXGXGXGGGGX0]]></Row>
-
-<Row><![CDATA[0XXGGGGGGGGGGGXGGGGGGGGGGGGGGGXXGGGXGG00]]></Row>
-
-<Row><![CDATA[00GGGGGGGGGGGGGGGGGGGGXGGGXGGGXGGGGGGX00]]></Row>
-
-<Row><![CDATA[000GGGGGGGGGGGGGGGXGGGGGGXGGGGXGXGGGG000]]></Row>
-
-<Row><![CDATA[000XGGGGXGGGGGGGGGGGGXGGGGGGGGGXGGGGX000]]></Row>
-
-<Row><![CDATA[00000XGGGGGGGGGGGGGGXXGGGGGGXXXGGGXX0000]]></Row>
-
-<Row><![CDATA[00000XGGGGGGXXGGGGGGGGGGGXGXGGGXXGX00000]]></Row>
-
-<Row><![CDATA[000000GGGXGGGGGGGGGGXXGGGGGXXGGXXX000000]]></Row>
-
-<Row><![CDATA[0000000XXGGGGGGGGGGGXGGXGGXXXGXGX0000000]]></Row>
-
-<Row><![CDATA[000000000GGGGXXGXGGGGGGGGGXGGXX000000000]]></Row>
-
-<Row><![CDATA[00000000000XXXGGGGGGGGXXGGXGXX0000000000]]></Row>
-
-<Row><![CDATA[0000000000000XXGGGXXXXGXXXX0000000000000]]></Row>
-
-<Row><![CDATA[0000000000000000XXXXXXX00000000000000000]]></Row>
-
</Data>
-
</Device>
-
</Map>
-
</Maps>
-
3 6365 - bool G85MapParser::ReadHeaderData()
-
{
-
CString csFormatRevision;
-
CString csRow;
-
CString csBintype;
-
-
TiXmlElement *pRoot, *pDevice, *pMap, *pData, *pRow;
-
TiXmlText *pRowData;
-
TiXmlAttribute *pFormatRevision, *pwaferId, *psubstrateId, *pLotId, *pOrientation, *pFrameId, *pRows, *pColumns, *pOriginLocation, *pNullBin, *pBinType, *pBinQuality, *pBinCode, *pReference, *pBin;
-
-
pRoot = m_pXMLFile->RootElement(); //maps
-
if ( pRoot!=NULL && (m_pNode=pRoot->FirstChild("Maps"))!=NULL )
-
{
-
pMap = pRoot->FirstChildElement("Map");
-
while (pMap)
-
{
-
pFormatRevision = pMap->FirstAttribute();
-
if (pFormatRevision)
-
{
-
csFormatRevision = pFormatRevision->Value();
-
if (csFormatRevision == "SEMI G85-1101")
-
{
-
pwaferId = pMap->FirstAttribute();
-
pwaferId->Value();
-
}
-
else
-
{ if (csFormatRevision == "SEMI G85-0703")
-
{
-
psubstrateId = pMap->FirstAttribute();
-
psubstrateId->Value();
-
pwaferId = pMap->FirstAttribute();
-
if (pwaferId)
-
{
-
pwaferId->Value();
-
//pwaferId->GetNewObject(pwaferId);
-
}
-
}
-
}
-
//pFormatRevision->GetNewObject(pFormatRevision);
-
}
-
-
pDevice = pMap->FirstChildElement("Device");
-
while (pDevice)
-
{
-
pLotId = pDevice->FirstAttribute();
-
if (pLotId)
-
{
-
pLotId->Value();
-
//pLotId->GetNewObject(pLotId);
-
}
-
-
pOrientation = pDevice->FirstAttribute();
-
if (pOrientation)
-
{
-
pOrientation->Value();
-
//pOrientation->GetNewObject(pOrientation);
-
}
-
-
pFrameId = pDevice->FirstAttribute();
-
if (pFrameId)
-
{
-
pFrameId->Value();
-
//pFrameId->GetNewObject(pFrameId);
-
}
-
-
pRows = pDevice->FirstAttribute();
-
if (pRows)
-
{
-
pRows->Value();
-
//pRows->GetNewObject(pRows);
-
}
-
-
pReference = pDevice->FirstAttribute();
-
if (pReference)
-
{
-
pReference->Value();
-
}
-
-
pBin = pDevice->FirstAttribute();
-
if (pBin)
-
{
-
pBin->Value();
-
}
-
-
pColumns = pDevice->FirstAttribute();
-
if (pColumns)
-
{
-
pColumns->Value();
-
//pColumns->GetNewObject(pColumns);
-
}
-
-
pOriginLocation = pDevice->FirstAttribute();
-
if (pOriginLocation)
-
{
-
pOriginLocation->Value();
-
//pOriginLocation->GetNewObject(pOriginLocation);
-
}
-
-
-
pNullBin = pDevice->FirstAttribute();
-
if (pNullBin)
-
{
-
pNullBin->Value();
-
//pNullBin->GetNewObject(pNullBin);
-
}
-
-
pBinType = pDevice->FirstAttribute();
-
if (pBinType)
-
{
-
csBintype = pBinType->Value();
-
if (csBintype = "HEXADECIMAL")
-
{
-
m_BCType = BC_HEX;
-
m_pXMLFile->LoadDocument(m_MapFile.buffer());
-
}
-
else
-
{
-
if (csBintype = "DECIMAL")
-
{
-
m_BCType = BC_DEC;
-
m_pXMLFile->LoadDocument(m_MapFile.buffer());
-
}
-
else
-
{
-
SetError("wrong file name");
-
}
-
-
SetError("wrong file name");
-
}
-
-
//pBinType->GetNewObject(pBinType);
-
}
-
-
pBinQuality = pDevice->FirstAttribute();
-
if (pBinQuality)
-
{
-
pBinQuality->Value();
-
pBinCode = pDevice->FirstAttribute();
-
//pBinQuality = pDevice->GetNewObject(pBinQuality);
-
break;
-
}
-
-
pData = pDevice->FirstChildElement("Data");
-
pRow = NULL;
-
pRowData = NULL;
-
while(pRow = pData->FirstChildElement("Row"))
-
{
-
pRowData = pRow->FirstChild()->ToText();
-
if ( pRowData )
-
{
-
pRowData->SetCDATA(false);
-
csRow = pRowData->Value();
-
}
-
}
-
}
-
}
-
}
-
-
else
-
{
-
SetError("Parsing error: 6", APARS_ERR_PARSERR, "1 6");
-
return false;
-
}
-
-
return true;
-
}
can i write it like that
What is this "G85 wafermap" you speak of? Spec?
@jkmyoung
G85 = a standard of SEMI (semiconductor industry)
so G85 wafermap = a map that use for a wafer to pick-up a die and this file is based on an extension *.xml
so, what i need is, i need to make this *.xml file into a parser that write in C/C++
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Rui Maciel |
last post by:
Hi there
I'm trying to learn how to handle XML information on C++ files. To start
off, I'm trying to use the TinyXML library. The thing is, I'm not having
muck success using the library and it...
|
by: Singee15 |
last post by:
How do i go about loading an xml file from a webpage to be used in
TinyXML?
example: Load from http://www.somepage.com/thexml.xml
Any help would be great, thanks!
|
by: Singee15 |
last post by:
How do i go about loading an xml file from a webpage to be used in
TinyXML?
example: Load from http://www.somepage.com/thexml.xml
Any help would be great, thanks!
|
by: Meetee |
last post by:
Hi..
I have created an XML file which contains username and password. I want to parse this XML file so that username and password can be stored in database.
I am using TinyXML and want to parse...
|
by: eadavid |
last post by:
HI,
I am a beginner to perl and I need to write perl code for checking a good die in the wafermap.
Here is the wafermap look like in file
....XXXX111111111X1111XXXX.......
|
by: thomas.frendo |
last post by:
Hi,
I'm trying to store some elements of TinyXml in a 2d std::vector
here is my code
#include "stdafx.h"
#include "tinyxml.h"
#include <vector>
|
by: mamid |
last post by:
Hi all,
I would like to use a C++ XML parser. But, between Xerces-C++ and Libxml++ I hesitate. I want make the best choice.
I would like to compare with that parser on different points...
|
by: Meetee |
last post by:
Hi,
I want to convert tinyxml document file into string. I have found on google as well as tinyxml document but I haven't solve it. What I have done so far is
TiXmlDocument doc("xyz.xml");...
|
by: abhishekltil |
last post by:
hello,
can you please help me in reading this sample xml using tinyxml library.
<?xml version="1.0" encoding="ISO-8859-1"?>
<Configuration>
<Parameter name="loglevel" value="3"/>...
|
by: modykun |
last post by:
Reading an XML here is a must for my need
I have to say though that i don't have any previous XML experience , so I'm not sure how to make it read it
I'm using TinyXML , because i need fast code...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |