Java XML and JSON: Document Processing for Java SE 2nd Edition Jeff Friesen - Download the ebook today and own the complete version
Java XML and JSON: Document Processing for Java SE 2nd Edition Jeff Friesen - Download the ebook today and own the complete version
com
https://textbookfull.com/product/java-xml-and-json-document-
processing-for-java-se-2nd-edition-jeff-friesen/
OR CLICK HERE
DOWLOAD EBOOK
https://textbookfull.com/product/java-xml-and-json-document-
processing-for-java-se-2nd-edition-jeff-friesen/
textbookfull.com
https://textbookfull.com/product/java-xml-and-json-friesen-jeff/
textbookfull.com
https://textbookfull.com/product/learn-java-for-android-development-
friesen-jeff/
textbookfull.com
https://textbookfull.com/product/beginning-xml-with-c-7-xml-
processing-and-data-access-for-c-developers-2nd-edition-bipin-joshi-
auth/
textbookfull.com
https://textbookfull.com/product/oca-java-se-8-programmer-i-
certification-guide-1st-edition-mala-gupta/
textbookfull.com
https://textbookfull.com/product/java-performance-in-depth-advice-for-
tuning-and-programming-java-8-11-and-beyond-2nd-edition-scott-oaks/
textbookfull.com
https://textbookfull.com/product/java-image-processing-recipes-with-
opencv-and-jvm-modrzyk/
textbookfull.com
https://textbookfull.com/product/ocp-java-se-8-programmer-ii-exam-
guide-exam-1z0-809-kathy-sierra/
textbookfull.com
Contents
1. Cover
2. Front Matter
3. Part I. Exploring XML
1. 1. Introducing XML
2. 2. Parsing XML Documents with SAX
3. 3. Parsing and Creating XML Documents with DOM
4. 4. Parsing and Creating XML Documents with StAX
5. 5. Selecting Nodes with XPath
6. 6. Transforming XML Documents with XSLT
1. 7. Introducing JSON
2. 8. Parsing and Creating JSON Objects with mJson
3. 9. Parsing and Creating JSON Objects with Gson
4. 10. Extracting JSON Values with JsonPath
5. 11. Processing JSON with Jackson
6. 12. Processing JSON with JSON-P
Landmarks
1. Cover
2. Table of Contents
3. Body Matter
Jeff Friesen
He has been
programming and teaching
how to program with Android, Perl, PHP, Java, VB,
Python, C/C++, and MySQL for more than 20 years.
1. Introducing XML
Jeff Friesen1
(1) Dauphin, MB, Canada
What Is XML?
XML (eXtensible Markup Language) is a meta-
language (a language used to describe other
languages) for defining vocabularies (custom
markup languages), which is the key to XML’s
importance and popularity. XML-based
vocabularies (such as XHTML) let you describe
documents in a meaningful way.
XML vocabulary documents are like HTML (see
http://en.wikipedia.org/wiki/HTML )
documents in that they are text-based and consist
of markup (encoded descriptions of a document’s
logical structure) and content (document text not
interpreted as markup). Markup is evidenced via
tags (angle bracket–delimited syntactic
constructs), and each tag has a name.
Furthermore, some tags have attributes
(name/value pairs).
<recipe>
<title>
Grilled Cheese Sandwich
</title>
<ingredients>
<ingredient qty="2">
bread slice
</ingredient>
<ingredient>
cheese slice
</ingredient>
<ingredient qty="2">
margarine pat
</ingredient>
</ingredients>
<instructions>
Place frying pan on element and select
medium heat.
For each bread slice, smear one pat of
margarine on
one side of bread slice. Place cheese
slice between
bread slices with margarine-smeared
sides away from
the cheese. Place sandwich in frying pan
with one
margarine-smeared side in contact with
pan. Fry for
a couple of minutes and flip. Fry other
side for a
minute and serve.
</instructions>
</recipe>
After marching a league from the latter town, we found the enemy's
rear-guard had taken up a position at Foz de Aronce, with their back
to the river Ceira, and the bridge behind them blown up. The
remainder of their army was in position on the other side, having
passed by fording, but in consequence of heavy rains, the river
became so swollen that it was in a few hours impassable. Our gallant
chief observed with his penetrating eye the egregious mistake that the
officer, Marshal Ney, who commanded the French rear-guard, had
made. We were all hungry and tired. I was frying some beef and
anxiously watching the savoury morsel, when an order was given by
Lord Wellington himself to Colonel Beckwith: "Fall in your battalion
and attack the enemy; drive in their skirmishers, and I will turn their
flank with the 3rd and 1st Divisions." The whole Light Division were
smartly engaged. The enemy opposed to the company (Captain
Beckwith's) I was with, were behind a low wall. The approach was
through a pine wood, and the branches were rattling about our ears
from the enemy's bullets. Lieutenant Kincaid got shot through his cap,
which grazed the top of his head. He fell as if a sledge hammer had
hit him. However, he came to himself and soon rallied again.
Lieutenant M'Cullock was shot through the shoulder. The attack
commenced about five in the afternoon and lasted till after dark, the
rain falling abundantly during part of the time. The French fought very
hard, and, some finding resistance to be in vain, threw themselves
upon our generosity, but the greater part rushed into the river, which
was tumbling along in its course most furiously, and there soon found
a watery grave. The enemy so little dreamt of being disturbed this
night that their cooking utensils were left upon their fires for strangers
to enjoy their contents. Such are the chances of war! I was quite
exhausted and tired, and was with about fifteen of the company in the
same state, when we made a great prize. One of the men found a
dozen pots upon a fire, the embers of which were low and caused the
place to escape notice. Here we adjourned, and soon made the fire
burn brightly. We found the different messes most savoury ones, and
complimented the French for their knowledge of making savoury
dishes, and many jokes were passed upon them. The men looked
about and found several knapsacks; they emptied them at the fireside
to see their contents and added to their own kits, shoes and shirts of
better quality than their own. In every packet I observed twenty
biscuits nicely rolled up or deposited in a bag; they were to last each
man so many days, and he must, unless he got anything else, be his
own commissary. We had been very ill-off for some days for bread, so
that some of these proved a great luxury.
16th
At two o'clock this morning the enemy had the arches of the bridge
more effectually blown up. The weather began to clear at daylight. We
saw numbers of the enemy dead in the river, and lying about near the
bushes as the water had left them. It was judged about 700 or 800
had been drowned, and the 39th Regiment lost their Eagles in the
water. A great quantity of baggage must have been destroyed or
thrown into the water, as there were a great many mules and donkeys
close to the river-side, hamstrung in the hind leg. These poor animals
looked so wretched that one could not help feeling for them, and
disgusted us with the barbarous cruelty of the French. To have killed
and put them out of their misery at once would have been far better.
We remained in bivouac.
The Light Division forded the river, a little more than knee- 17th
deep now, which the day before yesterday had caused so
many Frenchmen to wind up all worldly accounts. Bivouacked for the
night in a pine wood after a short march, as, owing to our rapid
advance, it became difficult to get up a sufficient supply of rations for
the army from Lisbon. Some deserters say the enemy has buried
many pieces of cannon. Gun-carriages, ammunition-waggons, and
every material of war is abandoned by the enemy, which makes us
regret that provisions should be the cause of delay in not pursuing
more effectually the great advantages we have already gained. A
deserter informed us that after dark the other night the enemy sent
several battalions down to the river to assist, if possible, the rear-
guard in passing the river, but that they got into confusion and fired
upon each other.
Advanced early this morning to the river Alva, found the bridge 18th
blown up, and the enemy in position on very strong ground at
Ponte de Murcella with some guns in position commanding the
approach to the river. We formed opposite the enemy and had a fine
view of a large body of them. Some nine-pounders were soon got up,
and commenced pounding their columns. I never saw Johnny go off in
such confusion. The cavalry followed for some distance. The Light
Division went into bivouac in the pine woods for the night.
An extract from the General Orders of the Day shows the high
estimation in which our gallant Commander holds the three British
regiments of the Light Division for their services in the field for the last
ten days.
Adjt.-General's Office, Lous̃a,
16th March 1811.
"The Commander of the Forces returns his thanks to the
general and staff officers, officers, and troops for their
excellent conduct in the operations of the last ten days
against the enemy, and he requests the commanding
officers of the 43rd, 52nd, and first battalion 95th (Rifles)
to name a sergeant of each regiment to be recommended
for promotion to an ensigncy as a testimony of the
particular approbation the Commander of the Forces
entertains for the conduct of these regiments.
"E. Pakenham, Deputy Adjt.-General."
A wooden bridge having been thrown across the river during 19th
last night, we passed over this morning and advanced through
Sobreira. A league farther we bivouacked in a wood of pines. The
cavalry followed the enemy's rear-guard, and in crossing a plain took
800 prisoners. One was a Portuguese and aide-de-camp to Loison. He
had a Spanish girl in a Hussar uniform as his companion. This fellow,
on his arrival in Lisbon, will be put to death as a traitor to his country
if he has not better luck than he deserves.
Light Division moved through Galizes and went into bivouac in 20th
a fir grove near Vendas Novas. The French rear-guard was
vigorously pursued by the cavalry and Horse Artillery, who took
numbers of prisoners and stragglers. We found numbers of tumbrils,
carts, waggons, and other articles abandoned by the French.
Occasionally we found Portuguese peasants that had been most
wantonly shot by the enemy.
The Light Division marched on to the fir groves above Maceira 21st
and bivouacked. Two hundred more of the enemy taken by the
cavalry.
Went into houses at Moimenta da Serva in consequence of the 22nd
weather being very bad. Several of the poor people gave us a
melancholy account of the cruelties they had suffered from the
French; and in every village on the line of their march they had
murdered many of the inhabitants in a most savage manner. A priest
in the above village dead, and his body mutilated.
Marched in front of Sampayo and bivouacked in a wood. 23rd
Letter No. XI
Mello (near Celorico), Portugal,
26th March 1811.
My dear Parents—I received the melancholy account of poor John with
sorrow.[19] It is a great misfortune, and under the present
circumstances it is utterly impossible to give him the least support. I
hope by this time you have received more authentic information as to
his situation. It is entirely out of my power to gain any knowledge of
him or be of the slightest use, distant as I am from England. Your plan
will be to make inquiry through the Transport Board, but it is so
entirely out of my way, I cannot advise you how to act with certainty.
In a mercantile place like Hull you will find numbers very well
acquainted with the business. If it would be possible to remit him
money occasionally, it would be the best way of serving him. It would
be cruel of me to say anything further regarding my displeasure when
I heard of him binding himself in so low a capacity; it is done, and the
result has proved truly unfortunate. We cannot foresee evils, but we
should endeavour to prevent them. If he had been a soldier, or a
sailor in a King's ship, he would, though a prisoner, have had some
little liberty, but in his situation he will not be noticed, but mix with
men of all descriptions. I endeavour to look upon his unfortunate
situation in the best manner possible. I flatter myself an exchange of
prisoners may take place before long. I hope his constitution is good.
He may possibly make his escape, though when once safe in France, it
is unlikely. I sometimes fancy he may get away after recovering from
the wounds he received, being near the coast. If he is enterprising, I
think he may have several chances; but, poor fellow, his youth may
make him careless. I wish I had the chance of attacking the escort
that guards him on the road. I think you would then soon have a
favourable account of him. Give me all the information you can about
him in your next.
I joined my regiment at Valle on the 22nd of February, the place I left
them at, my health quite restored and my thigh much better. I heard
of Maud's regiment being on the other side of the Tagus in good
quarters; it induced me to go. He was delighted to see me. He
regretted much the account of poor John. I dined with him, and
stayed until late the day following. Before I left his quarters he gave
me an excellent dinner and plenty of good wine. I was much pleased
with his manner of living, having a good stock of useful and necessary
things, a canteen with knives, forks, plates, etc.—in short, everything
useful, with a donkey to carry them. He is very steady, and has saved
money. I paid him some very high compliments on his conduct. He is
taller than I, and I assure you a very handsome, stout fellow. I told
him about the little trinkets I had sent Ann from Lisbon, which, by the
bye, I hope have arrived safe; acquaint me regarding them in your
next. He means to make Ann some presents when he returns. The
officers of his regiment behaved very politely, and invited me to spend
some days, but that was impossible. My brother came a little way with
me, and with regret we parted. We continued at Valle within pistol-
shot of the enemy's sentries until 6th March. At daybreak we found
the enemy had left this strong position and withdrawn his piquets. Our
Division directly followed. The French went off in the night, consisting
of the rear-guard of 12,000 men. They had been for some days taking
sick and baggage to the rear and heavy cannon also. We passed
through the fine town of Santarem, which was dreadfully sacked. I
was in the town when full of people and wealth; this sight hurt my
feelings much. A few half-starved miserable wretches came to cheer
us, nearly dead with hunger. I looked for the house I was once billeted
upon, but, alas! only the bare walls remained. The unfortunate owner
was a fine liberal old man, and treated me very kindly. I made some
inquiries, but could hear nothing. We halted for the night in a village.
At daybreak we followed the French, and passed through several
towns on fire. We did not come up with them. This night was on
outlying piquet. A little cottage by the roadside struck my fancy. I took
up my abode in order to have my pound of meat cooked and to be
sheltered, being rainy. The woman of the house welcomed me in and
offered me her chair. She had four children lying near her literally
starving. The French had robbed her of everything worth taking.
Some of the soldiers cut her with their swords for endeavouring to
stop them from taking away her daughter, and one villain had the
meanness to return to the house and tell her, "Your children are
starving; if you will give two dollars for this loaf, you shall have it."
She went where the last of her money was secreted; he watched her,
and took the money, abused her, and walked off. The poor creature
and her children appeared so wretched; she was continually praying
the English would revenge her wrongs. I did what I could to console
her, and gave them some of my little stock of provisions, which,
circumstanced as we are, we must, from real necessity, be very
careful of, as the towns are all left by the inhabitants.
It is beyond everything horrid the way these European savages have
treated the unfortunate Portuguese. Almost every man they get hold
of they murder. The women they use too brutally for me to describe.
They even cut the throats of infants. The towns are mostly on fire—in
short, they are guilty of every species of cruelty. I have seen such
sights as have made me shudder with horror, and which I really could
not have believed unless an eye-witness of them. It is needless for me
to enter into particulars, as I could fill a volume with their barbarities.
We continued marching, daily taking French sick and stragglers. If
they fell by any chance into the hands of the Portuguese, they either
dashed their brains out or stabbed them without ceremony. From the
Portuguese they certainly deserve no quarter, for they give none.
On the 9th, one company of us had some little skirmishing. The
Hussars and the 16th Light Dragoons, amounting to two troops,
charged double the number of French; killed and wounded fifteen and
took ten horses.
On the 11th we followed the enemy; two companies of ours drove
them from the woods; the enemy halted at Pombal, and occupied the
heights and castle. After some sharp fighting the enemy were driven
from their position, on the 3rd Caçadores (pronounced Cassadores)
coming up. One officer wounded and several men.
On the 12th we passed through several towns on fire; about eleven
o'clock a.m. we came up with the French, and found them posted upon
some heights in great force, both cavalry and infantry. On their right
and left were woods filled with sharp-shooters. Our columns moved
up and our regiment, the 43rd, 52nd, and Portuguese Light Infantry,
amounting to 5000, extended to the distance of three miles. The
order was given, and we filled the woods. The French threw numbers
of shot and shells, which only killed a few men. The woods were of fir-
trees and upon the sides of steep hills; as soon as we gained the top,
the French gave us a volley. It was of no consequence; our Boys
would not be stopped. The French, finding they could not stop us,
retired in the greatest confusion through the town of Redinha, which
was on fire. We kept at their heels, and the town was filled with our
men in a moment. We plied the enemy so hard that numbers threw
away their arms, and upwards of fifty fell over the bridge and were
drowned. A party of my men were blazing away at the rascals; one
espied an officer endeavouring to get through the water; he jumped
in and brought him out by the neck. He gave the soldier thirty-six
doubloons and a medal dedicated to the Legion of Honour. The soldier
gave me the medal. I should have returned it to the officer, but having
something of a more serious nature to mind, I afterwards had not an
opportunity. Halted for the night in a wood.
No fighting of consequence on the 13th.
On the 14th we drove in the enemy's piquets at daylight. Our whole
Division was engaged. Lieutenant Strode of the same company was
badly wounded in the thigh, and Major Stewart mortally wounded. We
continued fighting until three o'clock p.m. Strode when he fell called to
me to take his rifle, exclaiming, "This, Simmons, may be of service." I
had no time to stand on ceremony, but moved on. The French were
driven back on all sides, and very glad to give over fighting.
A very good town near where we halted was on fire, and numbers of
the inhabitants murdered.
At daybreak on the 15th found the enemy were gone. We immediately
followed, and came up with them at half-past four o'clock p.m.
occupying a very strong position and in great force. We began to build
huts about a mile from them and cook our breakfast, dinner, and
supper all at once; soldiers eat when they can. However, we were
disappointed, an order coming from Lord Wellington for an immediate
attack. Every man to his post, and in ten minutes exposed to a heavy
fire of shot, shells, and musketry. In passing the plain to get at the
enemy in the wood, I was for the moment startled; a musket ball
struck my rifle (Strode's), and shattered the butt to pieces, which
luckily saved my right thigh. I laughed and pushed on.
We here had some very hard fighting, having twelve French battalions
opposed to us. Our men and the Portuguese went in skirmishing order
up to their line. The French fired volleys. Their officers behaved very
gallantly. Just at dark the enemy were beaten back in all directions,
and as caution is necessary, we gave up the pursuit. This fight took
place near, and in, the village of Foz de Aronce. Above 500 of the
enemy were driven into the river and drowned, numbers killed and
wounded, nearly 300 mules and asses killed for fear of falling into our
hands. We quartered ourselves in the French camp; they left us good
fires. I roasted some pork which the French left, and had plenty of
biscuit, took a glass of grog and a pipe, and talked over the business
of the day with my brother-officers. Very happy to find I had a whole
skin, which was more than I expected; rolled myself in my cloak, lay
by the fire, and slept as well as I could wish.
In the whole of these affairs we have had one major killed, a very fine
gallant soldier, and six lieutenants wounded; I cannot say how many
men. The Gazette will give a more circumstantial account. The 43rd
and 52nd have also suffered severely. Some light companies of other
regiments were with us. The Portuguese deserve every praise; they
fight like lions. We have paid off the French for old scores, and also
taught them what they must expect to meet with if ever they dare to
invade our happy country. As for my gallant countrymen, I cannot say
too much for them; proud I am indeed to be worthy the name of a
Briton. I have confidence and pleasure in feeling I have done my duty
under all the privations I have laboured under, and at a time when
hardly recovered from a very bad illness. I have great reason to thank
the Almighty for His merciful goodness to me, and for my preservation
hitherto. I hope it is for a good purpose. I must own it would grieve
me to leave you under your present circumstances. I yet flatter myself
some day or other I shall have it in my power to show some mark of
my affection to the best of parents; if not: God's will be done. My last
words will be prayers for the welfare of those dearer to me than life.
I have seen a letter from Cadiz. I find the rascally Spaniards have
deceived General Graham, but the English alone gave the French a
terrible beating. Our regiment had one lieutenant-colonel wounded,
one captain killed, and four lieutenants wounded. Our regiment gets
terribly cut up. We think nothing of it. Every man glories in doing his
duty, and those that survive must be promoted.
The French said they would drive us into the sea, but Lord Wellington,
the finest General in the British service, has, from his penetration,
starved and nearly driven them back out of Portugal. We are at
Celorico, only six leagues from the frontiers of Spain, and in a few
days I shall once more see Almeida. I hope not to be so unlucky as
before. If we can bring the French to a general action, you will have a
fine account of the result. I hope it will be the case in a few days. Our
men have got quantities of money and plunder from the French. In
the whole business we have taken 1500 prisoners. I cannot ascertain
how many were drowned in the two rivers, but the last business was a
glorious one for us. The river appeared covered with bodies of fine
handsome fellows. We march in the morning, but the enemy seem to
wish to be off and have no more to do with us.—I am, your
affectionate son,
Geo. Simmons, Lt., 95th Regmt.
Joseph, I hope, is at school; Charles and Betsy also. My love to my
dear Ann. She must endeavour to spell better. Always let me see some
of her writing. Joseph may as well likewise give me a specimen.
When I am richer I shall send some things of more value to Ann. The
snuff-box, I hope, will please my dear mother. Be particular in stating
when you write, which must be on receipt of this, whether the trinkets
have safely arrived. I have no doubts upon the subject, as the officer I
entrusted them to is a particular friend. You must excuse omissions in
this letter, as I had only a little time to give you this account, and that
after a hard day's march, when I ought to have been sleeping instead
of writing.
CHAPTER VII
Journal—16th March-25th May 1811
rench dislodged from Freixeda and their baking operations stopped—
Death of Lieutenant James Stewart (Brigade-Major)—Dreadful
murder of a Spanish woman by the French—Action of Sabugal—
Desperate fighting—Lieutenant Arbuthnot killed—Advance resumed
—The Spanish frontier crossed—The Light Division takes up the old
line of outposts on the Agueda—Reconnaissances of Almeida, held
by the French—Defence of the bridge of Marialba—The French
driven off—Lord Wellington rejoins the army—The Royal Dragoons
and 14th Light Dragoons hold the advanced posts—The French
occupy Gallegos—The Light Division falls back—Marshal Massena
concentrates a strong force in front of Fuentes de Oñoro—The
British army forms up behind the town—Combats at Fuentes de
Oñoro—Battle of Fuentes de Oñoro—The Chasseurs Britanniques
repulse a charge of French cavalry—Successful charge by British
cavalry under General Stewart—The French occupy the village, but
on debouching are charged by the 74th and 88th Regiments and
driven back—Bivouac on the battlefield—French and English
outposts in touch—General Brenier evacuates Almeida, blowing up
his magazines and destroying his guns—Marshal Beresford invests
Badajoz—News of the battle of Albuera (the only general action in
the Peninsular War in which some of the Rifles were not present).
Letter No. XII
To his Parents from Espeja, dated 18th May 1811
raphic account of the action near Sabugal—A running fight for two
miles—The 43rd Light Infantry and Portuguese Caçadores support
the Rifles—The skirmishers suddenly come upon the French posted
in strength, and have to fall back—Colonel Beckwith's coolness in
action—Picton's Division arrives—Gallantry of the French officers—
The French retire—Skirmishing about Almeida—The fighting prior to
the battle of Fuentes de Oñoro—The inhabitants of the town
ordered to clear out—Battle of Fuentes de Oñoro—Losses of the
Rifles—Exceptional amount of fighting which fell to them—Anxiety
as to the welfare of his family—Scarcity of food and clothing—A
brown "Green jacket"—Wants a good "spy-glass."
The Light Division (with the exception of the right wing 95th) 28th
crossed the Mondego and occupied the villages of Baraca and
Minhoeal. That wing made a forced march to Alverca da Beira, where
the cavalry had their outposts. A party of Rifles (100), under the
command of Captain Beckwith, was sent to dislodge a body of the
enemy from a mill in the front of Freixeda, at which mill, Johnny was
busily employed grinding flour, and another body of the enemy was
baking it in the town. The enemy were driven from the mill, and
twenty prisoners captured, but we had to regret the loss of a gallant
fellow in Brigade-Major Stewart, who was killed on incautiously
entering the town, some French soldiers firing at him quite close, from
a window. I was requested to examine his wound by Colonel
Beckwith, and report how he came by his death, as his head was
deeply cut in the forehead and it was feared by some that when
wounded he had been deliberately murdered. I gave my opinion that
from a musket ball having entered his left breast, and passed through
his heart as he rode forward, he had instantly fallen upon his head.
The place he was riding over being granite rocks, and he being a
heavy man, the fall had scarred his head as it then appeared. My
supposition satisfied every one.
Before day we deposited poor Stewart in his last worldly 29th
tenement, wrapped in his cloak, near the village, and then
moved forward towards Guarda after the enemy, the 3rd and 6th
Divisions co-operating. We expected to have had warm work, but on
perceiving us move to attack in the direction of Sabugal, Johnny
moved off in the greatest possible hurry, followed up by cavalry and
Horse Artillery, who took near 200 prisoners.
The 3rd Division occupied Guarda, and saved the church, as well as
many houses, from being burnt. The doors of the church were on fire.
In a village in the front of Guarda, named Carapeta, I saw a woman
laid in the street near her own door, murdered. The ruffians had
placed upon her bosom a huge piece of granite taken from the market
cross, so heavy that it took me and six men to remove it. The blood
was running from her ears and mouth. Her dress upwards was most
respectable, but her lower habiliments had been dragged off her. A
peasant informed me that she was the wife of the juiz de fore of the
village (that is the Mayor). The Division occupied all the villages at the
foot of the high hill that Guarda stands upon. I was quartered in
Carapeta. I visited Guarda, which stands very high and upon a ridge
named the Sierra de Carapeta, connected with the Estrella mountains,
and is the most elevated town in Portugal, and also very ancient, with
a castle, and encircled by a dilapidated Moorish wall. The cathedral is
very ancient and the church superbly finished. The organ must, from
its large size, have produced a great musical effect. The church had
been converted into a stable and the organ sadly cut and hacked
about in the most wanton manner (by Catholics).
Marched to Pega, where we halted an hour. Very rainy. 1811 April 1st
Moved forward to Quintas de San Bartolomé, near the
Coa and opposite Sabugal, where the enemy was in great force. A
most dreadful night and very close. On piquet, with orders never to
quit the post, in case the enemy attacked me during the night, and to
be very vigilant indeed.
Went into quarters at a village. 2nd
Action of Sabugal
3rd
Colonel Beckwith's Brigade crossed the river Coa; the sides steep; the
95th led. It was deep and came up to my arm-pits. The officer
commanding the French piquet ordered his men to fire a few shots
and retire. On getting footing, we moved up in skirmishing order and
followed in the track of the piquet. We were met by a regiment, and
kept skirmishing until the rest of the Brigade came up, when we
pushed the enemy through some fine groves of large chestnut-trees
upon the main body (Regnier's Corps or 2nd). Two guns opened on us
and fired several discharges of round and grape. The guns were
repeatedly charged, but the enemy were so strong that we were
obliged to retire a little. Three columns of the enemy moved forward
with drums beating and the officers dancing like madmen with their
hats frequently hoisted upon their swords. Our men kept up a terrible
fire. They went back a little, and we followed. This was done several
times, when we were reinforced by the other Brigades, and the guns
were taken. But from the enemy's numbers being very much superior,
the combat was kept up very warmly until General Picton's (3rd)
Division came up and pushed out its Light companies on their flank,
the 5th Regiment forming a line in support. The 5th Division, under
General Dunlop, soon crossed at this bridge and passed through
Sabugal. The enemy gave way and went off in confusion; the rain now
fell in torrents and materially assisted their retreat. Our cavalry was
unluckily too distant to take advantage of the loose manner in which
they moved off. The Light Division was put into the town for the night,
as a compliment for its conduct on this day, and the remainder of the
army in bivouac. Lieutenant Arbuthnot was killed, Lieutenant Haggup
wounded, Colonel Beckwith wounded and his horse shot. Lieutenant
Kincaid and I, with our baggage, were provided with a dilapidated
habitation. We had very little to eat, but were sheltered from the
pelting rain. In one corner of the place several miserable human
beings were huddled together, nearly starved to death. I gave a poor
little child some of my bread, but then all the wretched creatures
began to beg from me. I could not assist them, not having enough to
satisfy the cravings of a hungry stomach, and being aware of another
rapid march awaiting me, and more exertions and dangers to
encounter before we could put the French over the frontiers of
Portugal; and as Sancho says, "It is the belly that keeps up the heart,
not the heart the belly."
The Light Division marched to Quadrazaes and Val d'Espinho, 4th
formed a junction with the 3rd Division, and passed through
Alfayates, where the latter halted. We moved forward to the frontier
village of Forcalhos.
Marched to Albergueria. Once more upon Spanish ground, and 5th
now able to get something more comfortable to eat and a
good mattress to sleep upon.
The enemy retired across the Agueda, leaving a garrison of 6th
1000 men in Almeida under General Brenier.
The 2nd Battalion 52nd joined from England on the march 7th
from Ponte de Murcella, and were put into Colonel
Drummond's Brigade. Remained in quarters.
Marched into Fuentes de Oñoro. 8th
The Light Division took up the old line of outpost upon the 9th
Agueda, occupying the villages of Gallegos, Espeja, and
Fuentes de Oñoro, and forming the line of advanced posts to the Duas
Casas, the fortress of Almeida being now blockaded by the British and
Portuguese.
Captain Cameron, Lieutenants Cox, Coxen, and myself went 10th
with 150 Rifle Men to San Pedro, near Almeida.
Before day, marched close to the town with a company of the 11th
2nd Battalion 52nd, under Captain Snodgrass, who supported
us. Several cannon shot were fired from the town at us. We
succeeded in making the garrison take within its walls several bullocks
and sheep that were feeding under the range of their guns. When it
became dusk we returned to San Pedro.
Marched to near Almeida and attacked the party that were 12th
guarding the cattle. The cattle were taken into the town. The
enemy fired some heavy guns repeatedly at us. Sergeant M'Donald
was killed. Continued watching near the town amongst the rocks, but
the cattle were kept within the gates. Returned at dusk for the night
to San Pedro.
Returned to Almeida, fired at the cattle, made the enemy take 13th
them within the walls. This was a very unpleasant service,
attended with more risk than profit. If we had been able to obtain a
sirloin of beef occasionally it would have been well enough.
Went as usual to Almeida. 14th
At daybreak found the enemy had moved off and only left a 10th
small cavalry piquet here and there along the line of posts
they had before so strongly occupied as a rear-guard. Our columns
were soon moving forward and the French withdrawing to join a very
strong body of cavalry, which kept ours in check and prevented us
from taking many prisoners. The Light Division went into quarters
again at Gallegos and Espeja. This night the garrison of Almeida under
General Brenier, after mining the works and fixing the loaded cannon
muzzle to muzzle and having the trains laid to fire them, left the town
and passed over the very bodies of the blockaders in a close column.
The pickets followed and fired upon them, the French now and then
firing a few shots, but making the best of their way to Barba del
Puerco, where they arrived at daylight, and were attacked by some of
the 4th and 36th Regiments in winding through the intricate passes
over the Agueda. In the eagerness of pursuit the 36th Light company
passed the bridge and went too far, and a body of French from San
Felices moved to assist their comrades and beat back the Light
company with loss. Colonel Cochrane, who commanded the regiment
on that occasion, was very much annoyed at some remarks afterwards
made. Brenier's mines exploded most effectually, and the guns also
were split in pieces; in fact, altogether it was a most masterly
movement. Colonel Bevan was too late at Barba del Puerco with his
regiment, owing to Sir W. Erskine, by accident, not sending him an
order in time. Poor Bevan was censured by Lord Wellington, which
circumstance preyed so much upon his mind, knowing that he had
done his duty, that he blew his brains out. The order alluded to was
sent from the headquarters by Lord Wellington's direction, and Sir
William Erskine forgot to forward it, and literally after the business
was over found the document in his pocket. What trifles some men's
fate hangs upon!
A Brigade of French Dragoons moved forward to the heights of 12th
Carpio this morning. Our cavalry piquets retired towards
Espeja, followed by a squadron. The 1st Brigade, Light Division,
moved in front of the town, and skirmishers (Rifle Men) fired upon the
French. They retreated, and our cavalry reoccupied their post at
Carpio, beyond the Azava.
Lord Wellington left the headquarters at Valermosa and went 16th
to visit Marshal Beresford, who had commenced the siege of
Badajoz.
Accounts of a sanguinary battle having been fought there on May 16th
arrived. Marshal Beresford had marched from before Badajoz to
Albuera, where he encountered, with the British, Portuguese, and two
Divisions of Spaniards, under Blake and Castaños, the French army,
commanded by Marshal Soult, and eventually, after sustaining
repeated attacks, drove it back. On the night of the 17th the French
moved off, and Badajoz was again invested on the 19th. My brother
Maud, Lieutenant, 34th Regiment, commanded a company, his captain
being killed early in the action.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com