|
-
WordML integrated with C#
Date: 09/25/07
(Computer Geeks) Keywords: xml
I'm working on making a program that will integrate numerous word docs and information from user input in a Windows Form to generate one new document. I was running into some issues as far as trying to figure out how to integrate static text content (stuff that is consistent in nearly all these final generated reports) into this new user-generated report. Someone suggested using WordML as a way to generate these documents. Just from looking it over it does look quite promising and much easier to integrate than the Office Interop Class, but I'm not quite sure how I would be able to take multiple WML files and then merge them and create these new documents, not to mention that while there are some big chunks of static text, there are also a few dynamic fields, such as date, subject address, etc; and I'm not sure how I integrate all these things into WordML. I have experience with XML and C# (Version 2.0 BTW) but not alot with integrating both in this fashion. Does anyone have any experience or advice with how to deal with this? It would mean a lot to me, as this is a major project (for me) that I'm undertaking but could potentially result in major changes (positive ones) in travel costs and turnaround times. Thanks.
Source: http://community.livejournal.com/computergeeks/1110047.html
-
Segfaultalicious
Date: 09/28/07
(PHP Community) Keywords: php, mysql, xml, sql, apache
I am just putting the finishing touches on a year long project that included in its design the use of an Op-Cache of some sort. After spending the last week and a half slamming a dev. server with siege for testing I noticed that occasionally the apache2 would seg. fault. We're using the LTS version of Ubuntu 6.04 with a stripped down environment dedicated and slaved to Apache w/memcache. From what I've researched and tested, this is actually a pretty well known issue with APC and also xcache. I've already written a simple daemon to watch the primary error log and if it spots a segfault fault error report to restart Apache, but this feels like using a band aid on a compound fracture.... Anyone have any other suggestions?
PHP compiled with just the bare minimums plus memcache, mysqli & mysql, JSON, and the XML library.
Source: http://community.livejournal.com/php/588121.html
-
XML node.
Date: 10/12/07
(Code WTF) Keywords: xml
class XMLDOM_NODE { public: XMLDOM_NODE (IXMLDOMNode2Ptr& spNode); ~XMLDOM_NODE ();
public: IXMLDOMNode2Ptr m_spNode; };
Без комментариев.
Source: http://community.livejournal.com/code_wtf/106564.html
-
Parsing XML
Date: 11/03/07
(PHP Community) Keywords: xml, sql
I'm having some problems parsing an XML file. For instance, I have a tag that looks like this:
ANONYMOUS: Hors envyeux, retirez vous d'ici
The function that reads the data from the tag assembles an SQL statement out of all the various tags. The code for this TITLE tag looks like this:
$SQL.= 'and title="'.$data.'" ';
If the data contains " it parses fine, since the data is surrounded with single quotes, but when ' comes through, it truncates the string. As I write all this out and think about the problem, my initial idea is to check the $data for either " or ' and then use a properly formatted SQL statement for the corresponding single or double quote. Anyone have a better idea? Thanks
Source: http://community.livejournal.com/php/593589.html
-
DomDocument->Load() & DomDocument->Save()
Date: 11/28/07
(PHP Community) Keywords: xml, security
I need in Load and Save of XML-documents on disk. I use DomDocument for work with them.
And I’m interesting, what about shared access security? Does DomDocument do flock() for reading/writing files?
Or will it better if I read and write XML-files by myself and do LoadXML()/SaveXML()?
Source: http://community.livejournal.com/php/599416.html
-
XML parsing woes...
Date: 12/15/07
(PHP Community) Keywords: php, mysql, xml, database, sql
Okay, so while I'm relatively good with PHP, I'm not so good with PHP 4's XML handling, and I'm having some problems creating an XML parser that will read tag attributes (which I'm then putting into a MySQL database).
I've tried a half-dozen different examples of parsers that others have done, and none seem able to pull the attributes out. I have no say in how it's structured, so I have to find a way to deal with it as is. My XML looks something like this:
Blah blah blah... Big long description goes here. 0000-00-00T00:00:00-0500
Everything else parses fine, except those damn description attributes. They seem to just disappear into the ether.
Anyone know of an easy way (outside of PHP 5, not an option in this situation) that I can get the info I need?
Source: http://community.livejournal.com/php/603991.html
-
Using POST for loading xml
Date: 12/26/07
(Javascript Community) Keywords: xml
Does anyone know if it's possible to use POST for loading xml somehow? for example
using nothing: xmlDoc.load("books.xml");
using GET: xmlDoc.load("books.xml?author=GAL");
how to POST data ?
Source: http://community.livejournal.com/javascript/148466.html
-
.NET Remoting on port 80 -- reasonable?
Date: 12/29/07
(C Sharp) Keywords: software, xml, database, asp, web, linux, hosting, microsoft
All,
As those of us who have worked with attempting to make any logically partitioned/layered OO schema work between .NET client applications and WebServices know, it's simply not possible without going far out of your way to do a lot of extra work that the elegant OO inheritance/extension was supposed to alleviate anyway. When I am especially irked about this issue, I will construct job interviews with the following two questions spaced one after the other:
n) Do you consider yourself a fully object-oriented developer, familliar with the concepts of inheritance, extension, abstract classes, interfaces, with the ability to both understand and work with the boundaries/"layers"/"tiers" between classes for a given software project (e.g. Database/Business Objects/User Interface)?
m) If so, what do you consider the most effective way to transmit an instance or instances of a business object from one .NET application to another (either client -> server or server -> client)?
The answers are invariably n) Absolutely, yes, I am God's gift to rational software development; and m) [whirr-clunk as Microsoft gears engage within brain] Using disconnected System.Data.DataSets since they're already XmlSerializable!
Always gives me a laugh. Nevermind that employing such an approach basically necessitates the creation of a FOURTH boundary/"layer"/"tier" -- call it Middleware, or specifically in this hideous world, Serialization/Deserialization.
Anyway, on to my question!
Due to the headaches raised by the above subject, and the deeper object replication that goes on using .NET Remoting (e.g. regardless of what is actually transmitted down the wire, you get a complete, functional, fully type-specific object with its public/private members/properties/methods intact, with NO Reference.cs or any other whiz-bang class-redefinition machinery thrown in your face), I come upon a quandary.
In my mind, at least up til the present moment, .NET Remoting is great for applications over whose general operational control you or your company or your trusted partner will maintain for the lifecycle of said application. With this kind of organizational scenario, routers and firewalls are generally surmountable, or at least negotiable, obstacles, since you know exactly from which machine(s) or subnet(s) certain TCP packets will be sent, and exactly to which machine(s) or subnet(s) those packets will be transmitted, and on what TCP port(s).
.NET WebServices, on the other hand, are a better choice for software with an eventual goal of wider distribution to CUSTOMERS rather than colleagues or partners -- entities whose firewalls you do not control, and who will regard something as little as a request as to its status wrt your application's performance as reflecting an incredibly unprofessional design. In other words, it's not much of a limit to place on your customers that they can transmit HTTP over port 80, and/or HTTPS over port 443.
But, as I finish up the previous 4 hours of banging my head into various WebService-related walls attempting to get class instances (or even just their public data -- I know how WebServices work and I understand it's for good reason) to replicate, I have to wonder -- what kinds of problems might there be lurking in, say, a widespread commercial application, some of whose clients employ .NET Remoting to communicate with their remote servers using TCP port 80? I don't see any particular *TECHNICAL* problems that are unsurmountable -- obviously, as usage scales, there will be more of a hassle doing load-balancing types of activities compared to, say, turning on IIS clustering and walking away. But that's a problem that is entirely out-of-scope for me -- if I get there with the subject of this question, and it's my biggest problem, I will be very happy.
Anyone consider or try this in a relatively large/Enterprise-level "ASP" (in its original disambiguation, that is, an Application Service Provider hosting the requests of potentially hundreds or thousands or more clients) environment? I pulled the better part of a decade as a systems/network admin and general TCP/IP geek (UNIX/Linux), so I know that, at least as of ~2003, you couldn't tell your router (unless it had more processors than most mainstream servers in 2007) to ONLY allow traffic fitting the profile of HTTP requests out on port 80. So I don't really see any technical problems.
However, any feedback is welcome. Thanks for reading this -- my fingers tend to run away from me. :)
Source: http://community.livejournal.com/csharp/90393.html
-
WCF and OO help -- part 2
Date: 01/05/08
(C Sharp) Keywords: xml, web, microsoft, google
All,
Hi again. I posted the message two down from this one (unless someone posts while I'm typing this) about the frustrations of .NET WebServices and an OO structure with logical boundaries. I received a bunch of hearty recommendations for WCF, all ensuring me that it would provide all of the great stuff I love from .NET Remoting, but it would let me do it over HTTP(S).
I guess I should have been more specific.
I attempted a WCF implementation of a few of the methods in one of my services. While it certainly behaved better than a WebService implementation (e.g. passing/returning an Interface didn't crash it! *sigh*), I'm still not getting the behavior I want. So I'm going to be a little more specific.
My application's architecture necessitates a large number of application modules, most of which are communicating with most of each other, while what each of them has to say to any given module is fairly narrow in breadth (say, 1-3 possible remote transactions per module pair in the network -- that is, if there were three modules (and there are actually more than double that), let's call them A, B, and C, module A would host 1-3 types of requests from B and C; module B would host 1-3 types of requests from A and C; module C would host 1-3 types of requests from A and B. You get the picture.
Because of this property of my application's communication schema, I was (perhaps stupidly -- I am certainly willing to eschew this particular practice, but read on for what I want to still be able to do) using two generic structs to do the gruntwork for all communication methods: TCPResponse CallRemotingService(TCPAction thisAction)
Where TCPAction is simply: public string Command; public string ComputerName; public object Data; public Type DataType;
and TCPResponse is simply: public bool Success; public string ErrorMessage; public Exception ErrorException; public object Data; public Type DataType;
By switching on TCPAction.Command and verifying TCPAction.DataType, I could cast TCPAction.Data into what I expected (TCPAction.DataType) and execute some private method on it that would return a TCPREsponse which I would return to the caller.
WCF complained that it didn't know anything about the classes (which contained other interfaces or still other classes as members) I was shoving into TCPACtion/Response.Data.
I understand that this approach has a number of unreasonable properties, so after seeing that it did not work with my attempt at WCF (which I suppose is my first question -- could it?), I moved on to the following.
As long as I can use the business objects I created for the purpose of shoving into TCPAction/Response.Data as parameters/returns for operation-specific methods of the WCF service, I am still happy, so I tried setting up a WCF service with a single method to see if my business objects would work in a more explicit form:
public string TestWCF(WSDataObject thisData) { }
Now, WSDataObject is a custom business class that has the following members (with appropriate get/set properties):
private ITransactionObject myITransactionObject; private WSAuthenticationObject myWSAuthenticationObject;
While ITransactionObject contains native framework value types, WSAuthenticationObject goes even further with:
private IWSPreAuthentication myIWSPreAuthentication; private string myServerAuthenticationKey;
Again, all of these classes have get/set properties for all of their members, which I've listed -- property names simply chop off "my."
The problem with this implementation was that WCF didn't know anything about some subset of the classes/interfaces "underneath" WSDataObject (ITransactionObject, WSAuthenticationObject, IWSPreAuthentication). The result was some kind of custom exception relating to type conversion.
FYI, I was using the Microsoft WCF "Getting Started" tutorial (modifying it to my needs) at this link.
I have to say I was disappointed that, just like WebServices, WCF requires a proxy class to mangle the public-facing portion of the object. However, I was too disheartened (and found far too little information from Google about "nested" classes like this) to "get my hands dirty" and see if I couldn't use the KnownTypeAttribute, or some other magic entirely, to make my business classes behave. Also, I was disappointed that WCF didn't (or I didn't make it) pass an entire object, private members and all. Is it possible to pass even methods?
That said, it looked like I was going to be pigeonholed into (some of) the same activities that WebServices would have forced me into -- basically writing a kind of serialization/deserialization layer in which I transmit and return only .NET native value types across the wire, but to and from which my applications can pass my real business objects. Which seems like a lot of unnecessary work.
I'm sure I didn't learn 10% about WCF in MS' tutorial -- does anyone have any better WCF resources that might be able to help with my problem? And/or has had experience with this particular problem in the past?
Any information/help is appreciated, as always. .NET Remoting works so well, but I just don't think it will fly in an application being marketed to customers, one component of which must be running from within their firewall. I wish there was some way to use .NET Remoting to make a request, grab the bytes, serialize them with XML, pass them to a really generic WebService with WCF, deserialize them, execute the transaction, and perform the reverse.
Source: http://community.livejournal.com/csharp/90948.html
-
.xml ?
Date: 01/07/08
(Web Development) Keywords: html, xml, database
I'm trying to create a user-friendly searchable image catalog. Think gettyimages.com, only not as pretty or robust. This is a B2B product only. My company has thousands of images, and we need to get them to creative agencies in the form of searchable galleries and contact sheets.
I'm using Mediapro to catalog and tag images. It makes nice, neat catalogs I can tag, export as contact sheets, etc. It also exports a *Very* simple HTML gallery. An index page, thumbnails, etc. it is not searchable and no meta data is attached to any of the images.
Mediapro also creates .xml files, which DOES have the meta data.
So I have an HTML gallery, an .xml file....how easy/hard would it be to tie these together into a searchable database, ala Getty? It is possible?
TIA
Source: http://community.livejournal.com/webdev/457145.html
-
Flex 2 Builder not...building.
Date: 01/08/08
(Web Development) Keywords: browser, xml
Rather urgent need here: I'm building an application with Flex 2 Builder and about halfway through today's work, the changes stopped coming through to the SWF files. The MXML and associated components are in place, the changes are saving, no errors are coming up but no changes will show when I RUN the application.
I'm making the changes directly to the default application, I've Cleaned the project, restarted everything, cleared all private data from all browsers, even viewed the SWF files directly - with no result. I've had to plug ahead making changes, but with little assurance that they're functioning as they should.
Anyone encountered this before or have any idea how to deal with it? Even ideas on how similar issues might be dealt with in other eclipse-related programs or hell, any environment would be most appreciated!
Source: http://community.livejournal.com/webdev/457402.html
-
XML file never appears when I use FTP client but it's there
Date: 01/12/08
(PHP Community) Keywords: php, xml, security, web
I have a file /home/me/xml/email.xml that is created via PHP running from within stub-executable (/xml folder only permits "cgi" user to write to it).
Problem is that I normally use TCL to write XML files, but because of my need to use $_SESSION for security reasons, I am having to do the entire program in PHP.
/home/me/xml/email.xml is there when I do echo file_get_contents('/home/me/xml/email.xml'); however, I can't SEE the file no matter what tool I use.
Here is the code that creates the email.xml file:
if (!function_exists('submit_email')) {
function submit_email($sessionName = '') {
global $userPath;
if (is_file("$userPath/xml/email.xml")) $contents = file_get_contents("$userPath/xml/email.xml");
if (!$contents) { /* NEW CONTENTS */
// DON'T FORGET YOU CAN'T HAVE < OR > NEXT TO ? ANYWHERE IN PHP UNLESS IT'S A COMMAND BLOCK DELIMITER!
$contents = '<' . '?xml version="1.0" encoding="utf-8"?' . '>';
} else {
// YOU WILL HAVE TO LOB OFF THE CLOSING TAG ELSE YOU WILL HAVE MALFORMED XML
$contents = preg_replace('/<\/emailalert>$/i', '', $contents);
}
$contents .= '';
// RE-INSERT INTO email.xml
$isSuccessful = true;
//@unlink("$userPath/xml/email.xml"); // FOR SOME REASON IT DOES NOT CLEAR OUT CONTENT USING 'w' OPTION
if (!file_put_contents("$userPath/xml/email.xml", $contents, 'w')) $isSuccessful = false;
if ($isSuccessful) chown("$userPath/xml/email.xml", 'ppowell');
if ($isSuccessful) $msg = exec("chown ppowell:users \"$userPath/xml/email.xml\"");
if ($isSuccessful) chmod("$userPath/xml/email.xml", 700);
if ($msg) print_r($msg);
if ($isSuccessful && !is_file("$userPath/xml/email.xml")) $isSuccessful = false;
// REMOVE SESSION (OPTIONAL) AND RETURN FALSE
if (!$isSuccessful) {
if ($sessionName && isset($_SESSION[$sessionName])) unset($_SESSION[$sessionName]);
return false;
}
return true;
}
}
This is very frustrating as I can't debug other issues taking place unless I am able to view email.xml other than printing it out on webpage (which is live = bad idea)
Help! Thanks
Source: http://community.livejournal.com/php/609267.html
-
создание и продвижение сайтов, реклама в Интернет
Date: 01/20/08
(Javascript Community) Keywords: php, mysql, html, xml, sql, java, web
Квалифицированно выполняю задачи разного уровня сложности по разработке необходимых Вам web-приложений Технические инструменты: HTML, XHTML, DHTML, Ajax, JavaScript, XML, XSL, PHP, Субд MySQL Книги, учебники, документация по Веб-дизайну (html, php, mysql, ajax) Статьи и обзоры ----- Роман Лащук Контактная информация: icq: 266-299-ноль-четыре-восемь mob: +38 (095) 180-30-ноль-пять e-mail: infodevel(sobaka)gmail.com ----- Выполненные работы: www.che5.com.ua, www.kddgroup.com.ua, www.kolbiko.com, www.radast.com.ua, www.webmoney.dn.ua, www.dnt.com.ua, www.wineyard.com.ua, www.sommelier.dn.ua, www.real-avto.com.ua, www.lobzz.com, www.gloria.dn.ua, www.ivi-indoor.tv
Source: http://community.livejournal.com/javascript/149318.html
-
создание и продвижение сайтов, реклама в Интернет
Date: 01/20/08
(Web Development) Keywords: php, mysql, html, xml, sql, java, web
Квалифицированно выполняю задачи разного уровня сложности по разработке необходимых Вам web-приложений Технические инструменты: HTML, XHTML, DHTML, Ajax, JavaScript, XML, XSL, PHP, Субд MySQL Книги, учебники, документация по Веб-дизайну (html, php, mysql, ajax) Статьи и обзоры ----- Роман Лащук Контактная информация: icq: 266-299-ноль-четыре-восемь mob: +38 (095) 180-30-ноль-пять e-mail: infodevel(sobaka)gmail.com ----- Выполненные работы: www.che5.com.ua, www.kddgroup.com.ua, www.kolbiko.com, www.radast.com.ua, www.webmoney.dn.ua, www.dnt.com.ua, www.wineyard.com.ua, www.sommelier.dn.ua, www.real-avto.com.ua, www.lobzz.com, www.gloria.dn.ua, www.ivi-indoor.tv
Source: http://community.livejournal.com/webdev/460210.html
-
IBM, Google quietly supporting OOXML?
Date: 01/21/08
(Data Management) Keywords: xml, microsoft, google
In spite of their public opposition to Microsoft's attempt to get the ISO standardization nod for its Office Open XML (OOXML) document format, IBM and Google quietly are supporting OOXML. That's according to two blog postings from the end of last week by Microsoft execs involved in...
Source: http://blogs.zdnet.com/microsoft/?p=1121
-
Super Friday to climax Microsoft Open XML push
Date: 02/05/08
(Open Source) Keywords: xml, microsoft
Forget Super Tuesday. Consider Super Friday.
Super Friday is February 29, the end of the ISO Ballot Resolution Meeting which will decide the fate of Open XML as an ISO standard.
Opponents say Microsoft has been packing national standards bodies to assure a “yes” vote on Open XML, which opponents call OOXML. The Open Document Format (ODF) used [...]
Source: http://feeds.feedburner.com/~r/zdnet/open-source/~3/229633935/
-
Physical Memory Dump (blue screen error)
Date: 02/07/08
(Computer Help) Keywords: software, xml
Hey everyone. I posted a while ago here with my issue of my computer freezing COMPLETELY randomly. I did make sure my video drivers were up to date by getting the newest ones. However, it's still happening. I don't have the money yet to invest in hardware (such as a new power source) that might not fix the problem.
So I thought I'd post here again with the new issue that's cropped up and see if this sheds some light on the situation.
Once in a while, this is probably the third time, I'll come back to my computer after a while and it'll be at a blue screen that says Physical Memory Dump, and a bunch of information about 'if this is the first time this has happened ignore it' etc etc. I rebooted and Windows brought up a warning saying it was restarted incorrectly and ran its little checker and this is what it gave me:
error signature BCCode : 10000050 BCP1 : DE24DEDC BCP2 : 00000000 BCP3 : 804E8D84 BCP4 : 00000000 OSVer : 5_1_2600 SP : 3_0 Product : 256_1
and in that
error report contents C:\DOCUME~1\Lavie\LOCALS~1\Temp\WERed59.dir00\Mini020608-01.dmp C:\DOCUME~1\Lavie\LOCALS~1\Temp\WERed59.dir00\sysdata.xml
Once again my computer stats are:
Windows XP Pro version 2002 Service pack 3, v3180 Intel Pentium 4 CPU 2.40GHz 2.41 GHz, 786 MB of RAM NVIDIA GeForce 6600 256 MB Direct X 9.0
Is this a software issue? Should I just try wiping my whole drive and redoing Windows altogether? I REALLY don't wanna do that if it won't help, because I have SO much stuff I'd have to back up. Or is this a ram issue? Or power source?
Any and all help is REALLY appreciated, I'm really at a loss and really stressed out about this.
Source: http://community.livejournal.com/computer_help/863761.html
-
Creating details page based off of Gridview/XML Binding
Date: 03/03/08
(Asp Dot Net) Keywords: xml
I know this is a rather dumb question, but basically I have a main page with a gridview bound to an XML source, and I want you to click on a link that each item has, and when you do that it directs you to a "Details" page (ie you click on a movie title and it directs you to a page that has more info on that movie, with the info being generated from the XML file based on the ID that is sent from the previous page.)
I know how to do this in .Net 1.1, which involved making a separate class and putting the XML info in that, but I imagine there HAS to be an easier way within the 2.0 framework, considering the implementation of Gridview and Detailsview. When I try and have the info binded on the details page, all it does is show the details of the first id, regardless of what id value is passed. I can post the XML file if necessary, but its a rather basic XML setup. I've tried using the XmlDataSource as opposed to manually coding everything myself. I was trained in developing everything by code as opposed to controls that generate it, but I figure if the control can do it more easily and quickly, it isn't a bad idea to learn that method.
So I guess the question is how do you efficiently create a "details" page when trying to pass a value from a previous page and then grab that info from a binded XML file?
;p
TIA
Source: http://community.livejournal.com/aspdotnet/96558.html
-
Microsoft releases updated Office-OpenOffice XML translator, ramps up document interop efforts as ISO mulls OpenXML
Date: 03/06/08
(Open Source) Keywords: xml, microsoft
Microsoft today launched an update of its OpenXML and ODF translator for its Excel and Powerpoint applications and pledged to keep churning out more documentation to enable interoperability — and more patents to protect that IP.
At an event in Cambridge, Mass., Microsoft’s interoperability chief Tom Robertson announced the document interoperability initiative, availability [...]
Source: http://feeds.feedburner.com/~r/zdnet/open-source/~3/247032843/
-
Help me install an update?!
Date: 03/24/08
(Computer Help) Keywords: xml
I'm (back) running XP SP2, and it's now trying to install an update related to KB936181, something to do with the XML core services SP 2. Actually, it's been trying to do this for days now, it's on about the 9th attempt. Can anyone help me to fix it so that it actually installs the update?
Source: http://community.livejournal.com/computer_help/873172.html
|